diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2014-01-29 13:53:03 -0500 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2014-01-29 14:09:28 -0500 |
commit | 82e87ed4799b12b7bd2e20a6fe5fdc19e0350fc3 (patch) | |
tree | ad383c07dc11a2d309cfbaf245e11c522522741a /rootdir | |
parent | a152ed734f179ee2748d306f2eb57acbb4df1ace (diff) | |
download | system_core-82e87ed4799b12b7bd2e20a6fe5fdc19e0350fc3.zip system_core-82e87ed4799b12b7bd2e20a6fe5fdc19e0350fc3.tar.gz system_core-82e87ed4799b12b7bd2e20a6fe5fdc19e0350fc3.tar.bz2 |
Move creation of /data/misc/wifi and /data/misc/dhcp to main init.rc file.
mkdir /data/misc/wifi subdirectories and /data/misc/dhcp is performed
in the various device-specific init*.rc files but seems generic.
Move it to the main init.rc file.
Drop the separate chown for /data/misc/dhcp as this is handled by mkdir
built-in if the directory already exists.
Add a restorecon_recursive /data/misc/wifi/sockets.
Change-Id: I51b09c5e40946673a38732ea9f601b2d047d3b62
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index a32366c..fa1ddd4 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -217,8 +217,12 @@ on post-fs-data restorecon_recursive /data/misc/zoneinfo mkdir /data/misc/vpn 0770 system vpn mkdir /data/misc/systemkeys 0700 system system - # give system access to wpa_supplicant.conf for backup and restore 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 |