summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilaksidduram <tilaksidduram@gmail.com>2014-06-10 20:30:20 +0530
committertilaksidduram <tilaksidduram@gmail.com>2014-06-10 20:30:20 +0530
commit925bf0439f5078585e82aa0d8f00cbd793522597 (patch)
treea35452584f341de347feb271b06fa12b602f89cd
parenta3486a1655d2c4ab5003b8d1f66eaa97ec75511f (diff)
downloaddevice_samsung_n7100-925bf0439f5078585e82aa0d8f00cbd793522597.zip
device_samsung_n7100-925bf0439f5078585e82aa0d8f00cbd793522597.tar.gz
device_samsung_n7100-925bf0439f5078585e82aa0d8f00cbd793522597.tar.bz2
Some more SELinux updates
-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 };