aboutsummaryrefslogtreecommitdiffstats
path: root/selinux/mediaserver.te
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/mediaserver.te')
-rw-r--r--selinux/mediaserver.te8
1 files changed, 8 insertions, 0 deletions
diff --git a/selinux/mediaserver.te b/selinux/mediaserver.te
new file mode 100644
index 0000000..35dce7b
--- /dev/null
+++ b/selinux/mediaserver.te
@@ -0,0 +1,8 @@
+qmux_socket(mediaserver)
+allow mediaserver self:socket create_socket_perms;
+allow mediaserver { firmware_camera }:file r_file_perms;
+allow mediaserver firmware_camera:dir r_dir_perms;
+allow mediaserver camera_data_file:file rw_file_perms;
+
+# Bluetooth audio
+allow mediaserver bluetooth:unix_stream_socket { connectto };