Skip to content
Snippets Groups Projects
  1. Jan 13, 2014
    • Stephen Smalley's avatar
      Allow recovery to execute ashmem_device and tmpfs. · 9a40702a
      Stephen Smalley authored
      
      Requires execmem and ashmem_device:chr_file execute similar to bootanim
      presumably for the display.
      
      Did not see any cache_file execute denials and do not see any
      exec of /cache files in the code, only reading/interpreting scripts,
      so I removed cache_file rx_file_perms.
      
      Did not see any tmpfs execute denials in /proc/last_kmsg but the
      source code appears to extract the update-binary to a tmpfs mount
      in /tmp and then exec it.  So I retained that rule.
      
      Tested with adb sideload.
      
      Change-Id: I8ca5f2cd390be1adf063f16e6280cc4cd1833c0e
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      9a40702a
    • Stephen Smalley's avatar
      Add a domain for the recovery console. · 6d10ca8f
      Stephen Smalley authored
      
      Define a domain for use by the recovery init.rc file for
      /sbin/recovery.  Start with a copy of the kernel domain
      rules since that is what /sbin/recovery was previously running in,
      and then add rules as appropriate.
      
      Change-Id:  Ie3d86547d5be0b68dd1875a97afe1e00fc3e4da1
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      6d10ca8f
Loading