am 410f8c30: am 79b277ab: Merge "Set security context of /adb_keys and /data/misc/adb/adb_keys."

* commit '410f8c305b416484f17f068c37b785605a2f69eb':
  Set security context of /adb_keys and /data/misc/adb/adb_keys.
This commit is contained in:
Colin Cross 2013-10-03 15:15:43 -07:00 committed by Android Git Automerger
commit ad2961397f

View file

@ -17,6 +17,9 @@ on early-init
# This should occur before anything else (e.g. ueventd) is started.
setcon u:r:init:s0
# Set the security context of /adb_keys if present.
restorecon /adb_keys
start ueventd
# create mountpoints
@ -218,6 +221,10 @@ on post-fs-data
mkdir /data/local 0751 root root
mkdir /data/misc/media 0700 media media
# Set security context of any pre-existing /data/misc/adb/adb_keys file.
restorecon /data/misc/adb
restorecon /data/misc/adb/adb_keys
# For security reasons, /data/local/tmp should always be empty.
# Do not place files or directories in /data/local/tmp
mkdir /data/local/tmp 0771 shell shell