Integrate nfc_power and rild rules from tuna sepolicy by Bryan Hinton.
This commit is contained in:
parent
0e85c17e6e
commit
f7948230ef
1
file.te
1
file.te
@ -8,6 +8,7 @@ type selinuxfs, fs_type;
|
||||
type cgroup, fs_type, mlstrustedobject;
|
||||
type sysfs, fs_type, mlstrustedobject;
|
||||
type sysfs_writable, fs_type, sysfs_type, mlstrustedobject;
|
||||
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
|
||||
type inotify, fs_type, mlstrustedobject;
|
||||
type devpts, fs_type;
|
||||
type tmpfs, fs_type;
|
||||
|
@ -132,3 +132,4 @@
|
||||
# sysfs files
|
||||
#
|
||||
/sys/qemu_trace/process_name -- u:object_r:sysfs_writable:s0
|
||||
/sys/devices/platform/nfc-power/nfc_power -- u:object_r:sysfs_nfc_power_writable:s0
|
||||
|
2
nfc.te
2
nfc.te
@ -8,3 +8,5 @@ allow nfc nfc_device:chr_file rw_file_perms;
|
||||
# Data file accesses.
|
||||
allow nfc nfc_data_file:dir create_dir_perms;
|
||||
allow nfc nfc_data_file:notdevfile_class_set create_file_perms;
|
||||
|
||||
allow nfc sysfs_nfc_power_writable:file rw_file_perms;
|
||||
|
1
rild.te
1
rild.te
@ -4,6 +4,7 @@ type rild_exec, exec_type, file_type;
|
||||
|
||||
init_daemon_domain(rild)
|
||||
net_domain(rild)
|
||||
allow rild self:netlink_route_socket setopt;
|
||||
allow rild kernel:system module_request;
|
||||
unix_socket_connect(rild, property, init)
|
||||
unix_socket_connect(rild, qemud, qemud)
|
||||
|
Loading…
Reference in New Issue
Block a user