diff options
author | Chirayu Desai <chirayudesai1@gmail.com> | 2016-02-20 18:33:33 +0530 |
---|---|---|
committer | Max Weffers <rcstar6696@gmail.com> | 2017-03-27 14:00:27 +0200 |
commit | 7ab67b18c676e655ffe73d2cefff7dcd075553b2 (patch) | |
tree | 0e9958338fb834862e091c4404dd821d410dc96d /sepolicy | |
parent | bda77e8b2f5266a03031a294af96876c4410ea6e (diff) |
Build and use macaddrsetup
Change-Id: I6f81296829673f66bcb27f444945b9bddd54929c
This fixes random mac adress at boot
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/file.te | 6 | ||||
-rw-r--r-- | sepolicy/file_contexts | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te index da08fbe..b6d4289 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -1,5 +1,4 @@ type sysfs_vibrator, fs_type, sysfs_type; - # TAD type secd_socket, file_type; type secd_data_file, file_type; @@ -10,3 +9,8 @@ type iddd_file, file_type, data_file_type; # BRCM BT FM type brcm_ldisc_sysfs, sysfs_type, fs_type; type brcm_uim_exec, exec_type, file_type; + +# macaddrsetup +type sysfs_wlanmac, fs_type, sysfs_type; + + diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 3c1a1d8..f4ce42c 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -49,3 +49,7 @@ #cam_socket /data/misc/camera(/.*) u:object_r:camera_data_file:s0 /dev/block/mmcblk0p1 u:object_r:tad_block_device:s0 + +# macaddrsetup +/sys/devices/platform/bcmdhd_wlan/macaddr u:object_r:sysfs_wlanmac:s0 + |