summaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorAlistair Strachan <astrachan@google.com>2018-11-20 18:09:27 -0800
committerAlistair Strachan <astrachan@google.com>2019-01-15 18:10:21 -0800
commit10c509c2c6592da469f49c358360bf995fd2da1a (patch)
tree88ca286656a9b260ae8190241d12697f9fe9e3f6 /sepolicy
parent7047ecac48c83c36c185421ed4fa19dcb74936a3 (diff)
downloadhikey-10c509c2c6592da469f49c358360bf995fd2da1a.tar.gz
Optionally build recovery for hikey{,960}.
Bug: 117293412 Change-Id: Ic4c5119bc10827484a49a39b895bd82e678c6cf0
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/recovery.te1
-rw-r--r--sepolicy/shell.te4
2 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/recovery.te b/sepolicy/recovery.te
new file mode 100644
index 00000000..e4677fe1
--- /dev/null
+++ b/sepolicy/recovery.te
@@ -0,0 +1 @@
+allow recovery gpu_device:chr_file rw_file_perms;
diff --git a/sepolicy/shell.te b/sepolicy/shell.te
new file mode 100644
index 00000000..3f17a5b5
--- /dev/null
+++ b/sepolicy/shell.te
@@ -0,0 +1,4 @@
+recovery_only(`
+allow shell tmpfs:file r_file_perms;
+allow shell sysfs:file r_file_perms;
+')