universal7870: import sepolicy from 7580-common

thanks to @danwood76
This commit is contained in:
Alejandro 2020-05-31 21:04:02 +02:00
parent 9ce97a0bfb
commit 0cfeb0ec4f
61 changed files with 507 additions and 425 deletions

View file

@ -1,11 +1,22 @@
# wifiloader
#### wifiloader
#
type wifiloader, domain;
type wifiloader_exec, exec_type, file_type;
type wifiloader_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(wifiloader)
unix_socket_connect(wifiloader, property, init)
allow wifiloader proc:file r_file_perms;
allow wifiloader sysfs_wlan_fwpath:file setattr;
allow wifiloader wifi_data_file:file rw_file_perms;
set_prop(wifiloader, wifi_prop);
# /efs
allow wifiloader efs_file:dir search;
# /efs/wifi
allow wifiloader wifi_efs_file:dir search;
allow wifiloader wifi_efs_file:file r_file_perms;
# load .ko modules
allow kernel self:capability sys_module;
allow wifiloader self:capability sys_module;
allow wifiloader self:capability { chown sys_module };