Skip to content
Snippets Groups Projects
  1. Mar 31, 2016
    • Daniel Rosenberg's avatar
      Allow access to media_rw_data_file for now. · d25d57a3
      Daniel Rosenberg authored
      With sdcardfs, we no longer have a separate sdcardd acting as
      an intermediate between the outside world and /data/media.
      Unless we modify sdcardfs to change contexts, we need these.
      Added for: adbd, kernel, mediaserver, and shell
      
      Remove this patch if sdcardfs is updated to change the
      secontext of fs accesses.
      
      Bug: 27915475
      Bug: 27937873
      
      Change-Id: I25edcfc7fb8423b3184db84040bda790a1042724
      d25d57a3
    • Daniel Rosenberg's avatar
      Allow shell and adbd access to media_rw_data_file for now. · bb90999e
      Daniel Rosenberg authored
      With sdcardfs, we no longer have a separate sdcardd acting as
      an intermediate between the outside world and /data/media.
      Unless we modify sdcardfs to change contexts, we need these.
      
      Remove this patch if sdcardfs is updated to change the
      secontext of fs accesses.
      
      Bug: 27925072
      Change-Id: I3ad37c0f12836249c83042bdc1111b6360f22b3c
      bb90999e
  2. Mar 29, 2016
    • Daichi Hirono's avatar
      Add mlstrustedobject to appfuse object type. · f19fb0c9
      Daichi Hirono authored
      To write bytes to appfuse file from priv_app, we need to specify
      mlstrustedobject.
      The CL fixes the following denial.
      
      type=1400 audit(0.0:77): avc: denied { write } for name="10" dev="fuse" ino=10 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:app_fuse_file:s0 tclass=file permissive=0
      
      BUG=23093747
      
      (cherry picked from commit 4d19f98c)
      
      Change-Id: I9901033bb3349d5def0bd7128db45a1169856dc1
      f19fb0c9
  3. Mar 28, 2016
    • Calin Juravle's avatar
      Give dex2oat getattr rights on profiles · f51c0548
      Calin Juravle authored
      Similar to profman, dex2oat does more checks on profiles now.
      It needs to be able to do stat to test for existance and non-emptiness.
      
      03-28 10:41:06.667  8611  8611 W dex2oat : type=1400 audit(0.0:129):
      avc: denied { getattr } for
      path="/data/misc/profiles/ref/com.google.android.apps.magazines/primary.prof"
      dev="dm-0" ino=636928 scontext=u:r:dex2oat:s0
      tcontext=u:object_r:user_profile_data_file:s0 tclass=file permissive=0
      
      Bug: 27860201
      Change-Id: I3a7cb396596ae28a375ea98224ada29f093f475e
      f51c0548
    • Calin Juravle's avatar
      Give profman getattr rights on profiles. · 070f5625
      Calin Juravle authored
      We do a bit more work checks in the runtime for the profiles and call
      stat on the files to see if they exists and their are not empty.
      
      SElinux error
      [  297.842210] type=1400 audit(1459106986.097:7): avc: denied { getattr
      } for pid=4504 comm="profman"
      path="/data/misc/profiles/cur/0/com.google.android.youtube/primary.prof"
      dev="dm-1" ino=636936 scontext=u:r:profman:s0
      tcontext=u:object_r:user_profile_data_file:s0:c512,c768 tclass=file
      permissive=0
      
      Bug: 27860201
      Change-Id: Ic97882e6057a4b5c3a16089b9b99b64bc1a3cd98
      070f5625
  4. Mar 25, 2016
  5. Mar 24, 2016
    • Mark Salyzyn's avatar
    • Mark Salyzyn's avatar
      Add recovery_persist & recovery_refresh · 05806470
      Mark Salyzyn authored
      (cherry pick from commit 16fe52c9)
      
      One time executables. recovery_refresh can be used at any time to
      ensure recovery logs in pmsg are re-placed at the end of the FIFO.
      recovery_persist takes the recovery logs in pmsg and drops them
      into /data/misc/recovery/ directory.
      
      Bug: 27176738
      Change-Id: Ife3cf323930fb7a6a5d1704667961f9d42bfc5ac
      05806470
    • dcashman's avatar
      Move sysfs_thermal to global policy and grant access. · 98eff7c3
      dcashman authored
      sysfs_thermal nodes are common enough to warrant an entry in global
      policy and the new HardwarePropertiesManagerService exists explicitly to
      expose some of this information.
      
      Address the following denials:
      avc: denied { search } for name="thermal" dev="sysfs" ino=17509 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=dir permissive=1
      avc: denied { read } for name="temp" dev="sysfs" ino=17848 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=1
      avc: denied { open } for path="/sys/devices/virtual/thermal/thermal_zone8/temp" dev="sysfs" ino=17848 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=1
      avc: denied { getattr } for path="/sys/devices/virtual/thermal/thermal_zone8/temp" dev="sysfs" ino=17848 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=file permissive=1
      
      Bug: 27809332
      Change-Id: I2dbc737971bf37d197adf0d5ff07cb611199300d
      98eff7c3
    • Pierre Imai's avatar
      Remove references to deleted dhcpcd · c5859951
      Pierre Imai authored
      Change-Id: I0c0bce9cd50a25897f5c4521ee9b4fada6648a59
      c5859951
  6. Mar 22, 2016
  7. Mar 19, 2016
  8. Mar 16, 2016
  9. Mar 15, 2016
    • Peng Xu's avatar
      Create SELinux label for contexhub_service · 1c50994e
      Peng Xu authored
      SELinux label is created for contexthub_service system service.
      
      ContextHub service manages all available context hubs and serves fulfil communication between apps
      and underlying context hub hardware.
      
      Change-Id: I8470fedd9c79a00012e1cdb9b548a1b632ba7de6
      1c50994e
  10. Mar 14, 2016
  11. Mar 11, 2016
    • dcashman's avatar
      Create sysfs_hwrandom type. · 85c0f8af
      dcashman authored
      HwRngTest needs access to the hwrandom sysfs files, but untrused_app
      does not have access to sysfs.  Give these files their own label and
      allow the needed read access.
      
      Bug: 27263241
      Change-Id: I718ba485e9e6627bac6e579f746658d85134b24b
      85c0f8af
  12. Mar 10, 2016
  13. Mar 09, 2016
  14. Mar 08, 2016
Loading