summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-03-25 20:51:06 +0100
committerTrafalgar-Square <schneller.demian@gmail.com>2016-05-01 10:13:14 +0200
commit99760b9673bdafedc9c59cd0139c46dcd31eef8b (patch)
tree10e4a9aa975ba4b7305e9c06b3c56d397d5a55c0
parent732bf7a24e16add354c45704e237cb2357d2683c (diff)
downloaddevice_samsung_n7100-99760b9673bdafedc9c59cd0139c46dcd31eef8b.zip
device_samsung_n7100-99760b9673bdafedc9c59cd0139c46dcd31eef8b.tar.gz
device_samsung_n7100-99760b9673bdafedc9c59cd0139c46dcd31eef8b.tar.bz2
selinux: allow to write the firmware files from recovery mode
Change-Id: I061c9d67b171099a3c5cf21c5961e15a2bc114fc Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--selinux/recovery.te7
1 files changed, 7 insertions, 0 deletions
diff --git a/selinux/recovery.te b/selinux/recovery.te
new file mode 100644
index 0000000..531f480
--- /dev/null
+++ b/selinux/recovery.te
@@ -0,0 +1,7 @@
+recovery_only(`
+
+# firmware files
+allow recovery firmware_exynos:dir { create setattr relabelto relabelfrom };
+allow recovery firmware_exynos:file { create write open setattr relabelto relabelfrom };
+allow recovery firmware_mfc:file { create write open setattr relabelto relabelfrom };
+')