From 564cb0a1b855281c36c8cb84c17e53321a7d913f Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Tue, 10 Jan 2017 22:15:22 +0100 Subject: [PATCH] selinux: give rild the necessary permissions Signed-off-by: Wolfgang Wiedmeyer --- selinux/rild.te | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/selinux/rild.te b/selinux/rild.te index 5b24906..bec55dc 100644 --- a/selinux/rild.te +++ b/selinux/rild.te @@ -1,5 +1,7 @@ allow rild radio_data:dir { search write remove_name getattr add_name setattr }; allow rild radio_data:file { write getattr setattr read create unlink open }; allow rild system_file:file execmod; -allow rild efs_block_device:blk_file read; -allow rild efs_device_file:dir search; +allow rild efs_block_device:blk_file rw_file_perms; +allow rild efs_device_file:dir create_dir_perms; +allow rild efs_device_file:file { setattr create create_file_perms }; +allow rild sysfs_radio:file { read write open };