summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Mahaveer <vishalm@ti.com>2016-08-22 17:40:56 -0400
committerPraneeth Bajjuri <praneeth@ti.com>2016-11-09 11:15:10 -0600
commit9ceb43c0c4da0175ff1b42059c466b1dd6e992a9 (patch)
tree6f1709eddba28cf770e66a76539babbe549a54b7
parent82d15b32d7f0cb360af107705e8f3c45f4e355e0 (diff)
downloadam57xevm-9ceb43c0c4da0175ff1b42059c466b1dd6e992a9.tar.gz
jacinto6evm: sepolicy: allow init to delete symlinks on /config
Cherry-picked from AOSP Project: device/google/dragon Commit: f8dc614d1bd1105a53194560d05704bf92f4bdea Author: Jeff Vander Stoep <jeffv@google.com> Change-Id: Ia7ec0b86a523d2d0c8c8f98c00c0eda83fad984f Signed-off-by: Vishal Mahaveer <vishalm@ti.com> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com> Conflicts: sepolicy/init.te
-rw-r--r--sepolicy/init.te4
1 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/init.te b/sepolicy/init.te
index 1c88dbc..7ff72db 100644
--- a/sepolicy/init.te
+++ b/sepolicy/init.te
@@ -2,3 +2,7 @@
allow init self:capability sys_module;
#Create symlinks for storage
allow init tmpfs:lnk_file create_file_perms;
+
+# /config
+allow init configfs:dir create_dir_perms;
+allow init configfs:{ file lnk_file } create_file_perms;