Skip to content
Snippets Groups Projects
  1. Apr 15, 2014
    • Nick Kralevich's avatar
      Label /dev/usb-ffs/adb functionfs · 77cc0550
      Nick Kralevich authored
      Newer adbd versions use functionfs instead of a custom adb usb gadget.
      Make sure the functionfs filesystem is properly labeled, and that adbd
      has access to the functionfs files.
      
      Once labeled, this addresses the following denials:
      
      <12>[   16.127191] type=1400 audit(949060866.189:4): avc:  denied  { read write } for  pid=223 comm="adbd" name="ep0" dev="functionfs" ino=5489 scontext=u:r:adbd:s0 tcontext=u:object_r:functionfs:s0 tclass=file
      <12>[   16.127406] type=1400 audit(949060866.189:5): avc:  denied  { open } for  pid=223 comm="adbd" path="/dev/usb-ffs/adb/ep0" dev="functionfs" ino=5489 scontext=u:r:adbd:s0 tcontext=u:object_r:functionfs:s0 tclass=file
      <12>[  377.366011] type=1400 audit(949061227.419:16): avc:  denied  { ioctl } for  pid=225 comm="adbd" path="/dev/usb-ffs/adb/ep2" dev="functionfs" ino=5564 scontext=u:r:adbd:s0 tcontext=u:object_r:functionfs:s0 tclass=file
      
      Change-Id: Iee8b522e48b4d677fd12f7c83dbc7ffbc9543ad2
      77cc0550
  2. Mar 12, 2014
    • dcashman's avatar
      Allow adbd access to gpu_device. · ddde8c29
      dcashman authored
      Addresses denials seen when attempting to take a screencaputre from ddms:
      <5>[ 1232.327360] type=1400 audit(1393354131.695:41): avc:  denied  { read write } for  pid=18487 comm="screencap" name="nvhost-ctrl" dev="tmpfs" ino=4035 scontext=u:r:adbd:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file
      
      Bug: 13188914
      Change-Id: I758e4f87ab024035604d47eebae7f89f21ea1e3e
      ddde8c29
  3. Feb 25, 2014
  4. Feb 24, 2014
  5. Jan 27, 2014
    • Nick Kralevich's avatar
      Move adbd into enforcing (all build types) · f9563665
      Nick Kralevich authored
      adbd was only in enforcing for user builds. Commit
      Ib33c0dd2dd6172035230514ac84fcaed2ecf44d6 allows us to move
      it into enforcing for everyone. Do it.
      
      Change-Id: Ie1a3e5361c891d2c9366e11f35699e3146cc3d88
      f9563665
  6. Jan 23, 2014
    • Nick Kralevich's avatar
      Support running adbd in the su domain. · 7d0f955e
      Nick Kralevich authored
      When adbd runs as root, it transitions into the
      su domain. Add the various rules to support this.
      
      This is needed to run the adbd and shell domains in
      enforcing on userdebug / eng devices without breaking
      developer workflows.
      
      Change-Id: Ib33c0dd2dd6172035230514ac84fcaed2ecf44d6
      7d0f955e
  7. Jan 13, 2014
  8. Jan 11, 2014
    • Nick Kralevich's avatar
      allow adbd setpcap · 40ce0bb8
      Nick Kralevich authored
      adbd uses setpcap to drop capabilities from the bounding
      set on user builds. See system/core commit
      080427e4e2b1b72718b660e16b6cf38b3a3c4e3f
      
      Change-Id: I6aec8d321b8210ea50a56aeee9bc94738514beab
      40ce0bb8
  9. Jan 02, 2014
  10. Dec 09, 2013
  11. Oct 21, 2013
    • Nick Kralevich's avatar
      Move unconfined domains out of permissive mode. · 353c72e3
      Nick Kralevich authored
      This change removes the permissive line from unconfined
      domains. Unconfined domains can do (mostly) anything, so moving
      these domains into enforcing should be a no-op.
      
      The following domains were deliberately NOT changed:
      1) kernel
      2) init
      
      In the future, this gives us the ability to tighten up the
      rules in unconfined, and have those tightened rules actually
      work.
      
      When we're ready to tighten up the rules for these domains,
      we can:
      
      1) Remove unconfined_domain and re-add the permissive line.
      2) Submit the domain in permissive but NOT unconfined.
      3) Remove the permissive line
      4) Wait a few days and submit the no-permissive change.
      
      For instance, if we were ready to do this for adb, we'd identify
      a list of possible rules which allow adbd to work, re-add
      the permissive line, and then upload those changes to AOSP.
      After sufficient testing, we'd then move adb to enforcing.
      We'd repeat this for each domain until everything is enforcing
      and out of unconfined.
      
      Change-Id: If674190de3262969322fb2e93d9a0e734f8b9245
      353c72e3
  12. Oct 01, 2013
    • Stephen Smalley's avatar
      Label adb keys file and allow access to it. · 55540755
      Stephen Smalley authored
      
      The /adb_keys entry will only take effect if a restorecon is
      applied by init.rc on a kernel that includes the rootfs labeling
      support, but does no harm otherwise.
      
      The /data/misc/adb labeling ensures correct labeling of the adb_keys
      file created if the device has ro.adb.secure=1 set.
      
      Allow adbd to read the file.
      
      Change-Id: I97b3d86a69681330bba549491a2fb39df6cf20ef
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      55540755
  13. May 20, 2013
    • repo sync's avatar
      Make all domains unconfined. · 77d4731e
      repo sync authored
      This prevents denials from being generated by the base policy.
      Over time, these rules will be incrementally tightened to improve
      security.
      
      Change-Id: I4be1c987a5d69ac784a56d42fc2c9063c402de11
      77d4731e
  14. May 10, 2013
  15. May 09, 2013
    • Nick Kralevich's avatar
      Remove sys_boot · 2bfb59df
      Nick Kralevich authored
      sys_boot is not needed for adb as of system/core commit
      ca8e66a8b0f843812014a28d49208f9f6f64ecbc
      
      sys_boot is not needed for system server as of frameworks/base
      commit dbcf2d7482562eff45ac727cea799b37a260e399
      
      Change-Id: I61379ea858e05acd239c9b16e4e2bf454af3f51c
      2bfb59df
  16. May 01, 2013
  17. Apr 25, 2013
  18. Apr 05, 2013
  19. Apr 04, 2013
  20. Apr 03, 2013
  21. Mar 27, 2013
  22. Mar 22, 2013
  23. Nov 19, 2012
    • Stephen Smalley's avatar
      Update policy for Android 4.2 / latest master. · 61c80d5e
      Stephen Smalley authored
      
      Update policy for Android 4.2 / latest master.
      Primarily this consists of changes around the bluetooth subsystem.
      The zygote also needs further permissions to set up /storage/emulated.
      adbd service now gets a socket under /dev/socket.
      keystore uses the binder.
      
      Change-Id: I8c5aeb8d100313c75169734a0fa614aa974b3bfc
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      61c80d5e
  24. Apr 03, 2012
  25. Mar 07, 2012
  26. Jan 12, 2012
  27. Jan 04, 2012
Loading