summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2019-05-08 23:53:54 -0500
committerPraneeth Bajjuri2019-05-09 16:14:31 -0500
commitb7cd0df1376e80e446750739828dc23979f70870 (patch)
tree10a772c1b0671cf7b99a71cb7f86b4cde436f96a /sepolicy
parent30a34c8bde334695a48cd4710e9273c14a41daf2 (diff)
downloaddevice-ti-am65xevm-b7cd0df1376e80e446750739828dc23979f70870.tar.gz
device-ti-am65xevm-b7cd0df1376e80e446750739828dc23979f70870.tar.xz
device-ti-am65xevm-b7cd0df1376e80e446750739828dc23979f70870.zip
am65xevm: sepolicy: update permissions for fsck
mmc_block_device (userdata partition) update permission to include fsck Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/device.te1
-rw-r--r--sepolicy/file_contexts10
-rw-r--r--sepolicy/fsck.te1
3 files changed, 4 insertions, 8 deletions
diff --git a/sepolicy/device.te b/sepolicy/device.te
new file mode 100644
index 0000000..20572f2
--- /dev/null
+++ b/sepolicy/device.te
@@ -0,0 +1 @@
type mmc_block_device, dev_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 8014641..8874f4a 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -11,14 +11,8 @@
11# Sysfs 11# Sysfs
12/sys/devices/soc0(/.*)? u:object_r:sysfs_socinfo:s0 12/sys/devices/soc0(/.*)? u:object_r:sysfs_socinfo:s0
13 13
14#Block devices 14# Block devices for fsck
15#/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/system u:object_r:system_block_device:s0 15/dev/block/mmcblk0p6 u:object_r:mmc_block_device:s0
16#/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/recovery u:object_r:recovery_block_device:s0
17#/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/cache u:object_r:cache_block_device:s0
18#/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/userdata u:object_r:userdata_block_device:s0
19#/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/misc u:object_r:misc_block_device:s0
20
21
22 16
23/vendor/lib64/libIMGegl.so u:object_r:same_process_hal_file:s0 17/vendor/lib64/libIMGegl.so u:object_r:same_process_hal_file:s0
24/vendor/lib64/libsrv_um.so u:object_r:same_process_hal_file:s0 18/vendor/lib64/libsrv_um.so u:object_r:same_process_hal_file:s0
diff --git a/sepolicy/fsck.te b/sepolicy/fsck.te
new file mode 100644
index 0000000..fc13bab
--- /dev/null
+++ b/sepolicy/fsck.te
@@ -0,0 +1 @@
allow fsck mmc_block_device:blk_file rw_file_perms;