aboutsummaryrefslogtreecommitdiffstats
path: root/sepolicy/orientationd.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/orientationd.te')
-rw-r--r--sepolicy/orientationd.te9
1 files changed, 9 insertions, 0 deletions
diff --git a/sepolicy/orientationd.te b/sepolicy/orientationd.te
new file mode 100644
index 0000000..672c473
--- /dev/null
+++ b/sepolicy/orientationd.te
@@ -0,0 +1,9 @@
+# orientationd
+type orientationd, domain;
+type orientationd_exec, exec_type, file_type;
+
+init_daemon_domain(orientationd)
+
+allow orientationd input_device:chr_file { read write open ioctl };
+allow orientationd input_device:dir { search read open };
+allow orientationd self:process { execmem };