summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BoardConfig.mk1
-rw-r--r--rootdir/init.target.rc17
-rw-r--r--selinux/vold.te2
3 files changed, 20 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 8f63b1b..535d6bf 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -58,4 +58,5 @@ BOARD_SEPOLICY_UNION += \
rild.te \
system.te \
ueventd.te \
+ vold.te \
wpa_supplicant.te
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index a7fcf72..d3d5407 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -10,6 +10,23 @@ on post-fs-data
# make param block device link for SysScope
symlink /dev/block/mmcblk0p7 /dev/block/param
+ # Restorecon
+ restorecon /efs/nv_data.bin
+ restorecon /efs/nv_data.bin.md5
+ restorecon /efs/.nv_core.bak
+ restorecon /efs/.nv_core.bak.md5
+ restorecon /efs/.nv_data.bak
+ restorecon /efs/.nv_data.bak.md5
+ restorecon /efs/.nv_state
+ restorecon /efs/bluetooth/bt_addr
+ restorecon /efs/FactoryApp/factorymode
+ restorecon /efs/FactoryApp/hw_ver
+ restorecon /efs/FactoryApp/keystr
+ restorecon /efs/FactoryApp/serial_no
+ restorecon /efs/imei/mps_code.dat
+ restorecon /efs/gyro_cal_data
+ restorecon /efs/wifi/.mac.info
+
# SensorHub
chown system radio /sys/class/sensors/ssp_sensor/enable
chown system radio /sys/class/sensors/ssp_sensor/mcu_rev
diff --git a/selinux/vold.te b/selinux/vold.te
new file mode 100644
index 0000000..9452abf
--- /dev/null
+++ b/selinux/vold.te
@@ -0,0 +1,2 @@
+allow vold kernel:process setsched;
+allow vold sdcardd_exec:file { read open execute execute_no_trans };