aboutsummaryrefslogtreecommitdiffstats
path: root/sepolicy/orientationd.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/orientationd.te')
-rw-r--r--sepolicy/orientationd.te6
1 files changed, 3 insertions, 3 deletions
diff --git a/sepolicy/orientationd.te b/sepolicy/orientationd.te
index 672c473..9db61a5 100644
--- a/sepolicy/orientationd.te
+++ b/sepolicy/orientationd.te
@@ -4,6 +4,6 @@ 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 };
+# the sensor is an input device
+allow orientationd input_device:chr_file rw_file_perms;
+allow orientationd input_device:dir r_dir_perms;