diff options
author | Nick Kralevich <nnk@google.com> | 2014-03-11 18:08:38 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-11 18:08:38 +0000 |
commit | 9509103cd4f28cf05a9fc6c5b6fd97504875097c (patch) | |
tree | 10db94327263c4c6744915061bfdaa1f1e0f4ad3 /rootdir | |
parent | 0c7d71a022cf1a7b25b14d5496ebf10c1bea4300 (diff) | |
parent | 9453bce4cff952aab5c90f5b30c6c12d3e1521e5 (diff) | |
download | system_core-9509103cd4f28cf05a9fc6c5b6fd97504875097c.zip system_core-9509103cd4f28cf05a9fc6c5b6fd97504875097c.tar.gz system_core-9509103cd4f28cf05a9fc6c5b6fd97504875097c.tar.bz2 |
am 9453bce4: Merge "Apply restorecon_recursive to all of /data."
* commit '9453bce4cff952aab5c90f5b30c6c12d3e1521e5':
Apply restorecon_recursive to all of /data.
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 477bcca..0d864db 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -219,23 +219,16 @@ on post-fs-data mkdir /data/misc/radio 0770 system radio mkdir /data/misc/sms 0770 system radio mkdir /data/misc/zoneinfo 0775 system system - restorecon_recursive /data/misc/zoneinfo mkdir /data/misc/vpn 0770 system vpn mkdir /data/misc/systemkeys 0700 system system mkdir /data/misc/wifi 0770 wifi wifi mkdir /data/misc/wifi/sockets 0770 wifi wifi - restorecon_recursive /data/misc/wifi/sockets mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi mkdir /data/misc/dhcp 0770 dhcp dhcp # give system access to wpa_supplicant.conf for backup and restore chmod 0660 /data/misc/wifi/wpa_supplicant.conf mkdir /data/local 0751 root root mkdir /data/misc/media 0700 media media - restorecon_recursive /data/misc/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 @@ -267,7 +260,6 @@ on post-fs-data # create directory for MediaDrm plug-ins - give drm the read/write access to # the following directory. mkdir /data/mediadrm 0770 mediadrm mediadrm - restorecon_recursive /data/mediadrm # symlink to bugreport storage location symlink /data/data/com.android.shell/files/bugreports /data/bugreports @@ -278,6 +270,9 @@ on post-fs-data # Reload policy from /data/security if present. setprop selinux.reload_policy 1 + # Set SELinux security contexts on upgrade or policy update. + restorecon_recursive /data + # If there is no fs-post-data action in the init.<device>.rc file, you # must uncomment this line, otherwise encrypted filesystems # won't work. |