summaryrefslogtreecommitdiffstats
path: root/selinux/mediaserver.te
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/mediaserver.te')
-rw-r--r--selinux/mediaserver.te19
1 files changed, 11 insertions, 8 deletions
diff --git a/selinux/mediaserver.te b/selinux/mediaserver.te
index 35dce7b..3ebbf85 100644
--- a/selinux/mediaserver.te
+++ b/selinux/mediaserver.te
@@ -1,8 +1,11 @@
-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 };
+allow mediaserver camera_data_file:file write;
+allow mediaserver mnt_user_file:dir search;
+allow mediaserver storage_file:dir search;
+allow mediaserver storage_file:lnk_file read;
+allow mediaserver self:socket create;
+allow mediaserver socket_device:dir write;
+allow mediaserver socket_device:dir add_name;
+allow mediaserver socket_device:sock_file create;
+allow mediaserver socket_device:sock_file write;
+allow mediaserver qmuxd:unix_stream_socket connectto;
+allow mediaserver socket_device:sock_file setattr;