summaryrefslogtreecommitdiff
path: root/sepolicy/init-fugu-countrycode-sh.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/init-fugu-countrycode-sh.te')
-rw-r--r--sepolicy/init-fugu-countrycode-sh.te13
1 files changed, 13 insertions, 0 deletions
diff --git a/sepolicy/init-fugu-countrycode-sh.te b/sepolicy/init-fugu-countrycode-sh.te
new file mode 100644
index 0000000..fd4948a
--- /dev/null
+++ b/sepolicy/init-fugu-countrycode-sh.te
@@ -0,0 +1,13 @@
+type init-fugu-countrycode-sh, domain;
+type init-fugu-countrycode-sh_exec, exec_type, file_type;
+
+init_daemon_domain(init-fugu-countrycode-sh)
+
+allow init-fugu-countrycode-sh shell_exec:file rx_file_perms;
+
+# execute toybox/toolbox
+allow init-fugu-countrycode-sh toolbox_exec:file rx_file_perms;
+
+set_prop(init-fugu-countrycode-sh, countrycode_prop)
+allow init-fugu-countrycode-sh efs_file:file { open read };
+allow init-fugu-countrycode-sh efs_file:dir search;