aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/vendor/qti_init_shell.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/vendor/qti_init_shell.te')
-rw-r--r--sepolicy/vendor/qti_init_shell.te15
1 files changed, 15 insertions, 0 deletions
diff --git a/sepolicy/vendor/qti_init_shell.te b/sepolicy/vendor/qti_init_shell.te
new file mode 100644
index 0000000..56c35ba
--- /dev/null
+++ b/sepolicy/vendor/qti_init_shell.te
@@ -0,0 +1,15 @@
+allow qti_init_shell vendor_radio_data_file:dir { getattr open read search setattr };
+allow qti_init_shell file_contexts_file:file { getattr open read };
+
+# Allow qti_init_shell to fully access wlan_mac.bin persist file
+allow qti_init_shell mnt_vendor_file:dir rw_dir_perms;
+allow qti_init_shell mnt_vendor_file:file create_file_perms;
+
+# Allow qti_init_shell to write and read /mnt/vendor/persist/bluetooth/bt_mac
+allow qti_init_shell persist_bluetooth_file:dir { add_name create search write };
+allow qti_init_shell persist_bluetooth_file:file { create getattr open read write };
+
+# Allow qti_init_shell to read cmdline
+allow qti_init_shell proc_cmdline:file { getattr open read };
+
+set_prop(qti_init_shell, oem_unlock_prop)