klte-common: sepolicy: Allow macloader to write params to sysfs

Change-Id: I157456c3cbd666f907c5761b816b605f1a1eec34
This commit is contained in:
Kevin F. Haggerty 2016-10-23 14:11:04 -06:00 committed by Kevin Haggerty
parent b6f8787b74
commit 5b43dfd64d
3 changed files with 4 additions and 1 deletions

View File

@ -3,5 +3,6 @@ type sysfs_camera, fs_type, sysfs_type;
type sysfs_display, fs_type, sysfs_type;
type sysfs_sec, fs_type, sysfs_type;
type sysfs_vibeamp, fs_type, sysfs_type;
type sysfs_wifi_nv_path, fs_type, sysfs_type;
type vcs_data_file, file_type, data_file_type;
type wifi_efs_file, file_type;

View File

@ -45,3 +45,4 @@
/data/.cid.info u:object_r:wifi_data_file:s0
/data/.wifiver.info u:object_r:wifi_data_file:s0
/efs/wifi(/.*)? u:object_r:wifi_efs_file:s0
/sys/module/dhd/parameters/nvram_path u:object_r:sysfs_wifi_nv_path:s0

View File

@ -6,7 +6,8 @@ type_transition macloader system_data_file:file wifi_data_file;
allow macloader efs_file:dir search;
allow macloader self:capability { chown dac_override fowner fsetid };
allow macloader sysfs_wifi_nv_path:file { open write };
allow macloader system_data_file:dir { add_name search write };
allow macloader wifi_data_file:file { create_file_perms getattr setattr };
allow macloader wifi_efs_file:dir search;
allow macloader wifi_efs_file:file r_file_perms;
allow macloader system_data_file:dir { add_name search write };