summaryrefslogtreecommitdiffstats
path: root/selinux/tinyplay.te
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/tinyplay.te')
-rw-r--r--selinux/tinyplay.te8
1 files changed, 8 insertions, 0 deletions
diff --git a/selinux/tinyplay.te b/selinux/tinyplay.te
new file mode 100644
index 0000000..49a5f37
--- /dev/null
+++ b/selinux/tinyplay.te
@@ -0,0 +1,8 @@
+type tinyplay, domain;
+type tinyplay_exec, exec_type, file_type;
+init_daemon_domain(tinyplay)
+
+allow tinyplay audio_device:chr_file { open read write ioctl };
+allow tinyplay audio_device:dir search;
+
+domain_trans(init, rootfs, tinyplay)