diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts new file mode 100644 index 00000000..4c3a8c19 --- /dev/null +++ b/sepolicy/private/file_contexts @@ -0,0 +1,2 @@ +# Binaries +/system/bin/tri-state-key_daemon u:object_r:tri-state-key_daemon_exec:s0 diff --git a/sepolicy/private/tri-state-key_daemon.te b/sepolicy/private/tri-state-key_daemon.te new file mode 100644 index 00000000..108c7ab8 --- /dev/null +++ b/sepolicy/private/tri-state-key_daemon.te @@ -0,0 +1,7 @@ +type tri-state-key_daemon, domain, coredomain; +type tri-state-key_daemon_exec, exec_type, file_type; + +init_daemon_domain(tri-state-key_daemon) + +allow tri-state-key_daemon uhid_device:chr_file rw_file_perms; +allow tri-state-key_daemon self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;