diff options
author | Davide Garberi <dade.garberi@gmail.com> | 2019-05-15 23:15:09 +0200 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2019-05-16 14:36:53 +0200 |
commit | 6df37ecfba588b61bf873ffe933034fb6da5368c (patch) | |
tree | 4cec326038a9a83346e5530caa8eb04cb7d57fee /sepolicy | |
parent | 544f72589efed0d251f54377269d5ab43da8ca88 (diff) |
msm8996-common: Remove wcg_mac_tool
* Turns out we don't actually need to use this as /proc/mac_wifi and mac_bt can turn into normal mac address values just with hex dumping
* Remove bt_mac_prop as we can just set the mac path in vendor_prop.mk
Change-Id: I23665cdd5d39d5e090694cff5a63f55ecb9ea334
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/file_contexts | 1 | ||||
-rw-r--r-- | sepolicy/hal_bluetooth_qti.te | 2 | ||||
-rw-r--r-- | sepolicy/property.te | 2 | ||||
-rw-r--r-- | sepolicy/property_contexts | 19 | ||||
-rw-r--r-- | sepolicy/qti_init_shell.te | 2 | ||||
-rw-r--r-- | sepolicy/shell.te | 1 | ||||
-rw-r--r-- | sepolicy/system_app.te | 1 | ||||
-rw-r--r-- | sepolicy/wcg_mac.te | 10 |
8 files changed, 0 insertions, 38 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index d8e2011..6b76d4e 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -1,7 +1,6 @@ # Binaries /(vendor|system/vendor)/bin/init.bt.sh u:object_r:qti_init_shell_exec:s0 /(vendor|system/vendor)/bin/init.wlan.sh u:object_r:qti_init_shell_exec:s0 -/(vendor|system/vendor)/bin/wcg_mac_tool u:object_r:wcg_mac_exec:s0 # Bluetooth /sys/devices/vendor/vendor:bt_qca6174/extldo u:object_r:sysfs_bluetooth_writable:s0 diff --git a/sepolicy/hal_bluetooth_qti.te b/sepolicy/hal_bluetooth_qti.te index ebed0fb..429585f 100644 --- a/sepolicy/hal_bluetooth_qti.te +++ b/sepolicy/hal_bluetooth_qti.te @@ -1,3 +1 @@ allow hal_bluetooth_qti sysfs_bluetooth_writable:file rw_file_perms; - -get_prop(hal_bluetooth_qti, bt_mac_prop) diff --git a/sepolicy/property.te b/sepolicy/property.te index e77394a..9520846 100644 --- a/sepolicy/property.te +++ b/sepolicy/property.te @@ -1,3 +1 @@ -type wcg_prop, property_type; type oem_unlock_prop, property_type; -type bt_mac_prop, property_type; diff --git a/sepolicy/property_contexts b/sepolicy/property_contexts index ed4d762..a472b82 100644 --- a/sepolicy/property_contexts +++ b/sepolicy/property_contexts @@ -1,6 +1,3 @@ -# Bluetooth -ro.vendor.bt.bdaddr_path u:object_r:bt_mac_prop:s0 - # Camera persist.camera. u:object_r:camera_prop:s0 @@ -9,19 +6,3 @@ ro.oem_unlock_supported u:object_r:oem_unlock_prop:s0 # Qseecomd sys.listeners.registered u:object_r:vendor_tee_listener_prop:s0 - -# WCG -sys.wifimac u:object_r:wcg_prop:s0 -sys.bt.address u:object_r:wcg_prop:s0 -persist.bt.max.hs.connections u:object_r:wcg_prop:s0 -gsm.sn1 u:object_r:wcg_prop:s0 -sys.customsn.showcode u:object_r:wcg_prop:s0 -cdma.meid u:object_r:wcg_prop:s0 -gsm.imei1 u:object_r:wcg_prop:s0 -gsm.imei2 u:object_r:wcg_prop:s0 -persist.cdma.meid u:object_r:wcg_prop:s0 -persist.gsm.imei1 u:object_r:wcg_prop:s0 -persist.gsm.imei2 u:object_r:wcg_prop:s0 -gsm.hwid u:object_r:wcg_prop:s0 -gsm.station u:object_r:wcg_prop:s0 -persist.gsm.qlogd.on u:object_r:wcg_prop:s0 diff --git a/sepolicy/qti_init_shell.te b/sepolicy/qti_init_shell.te index 1331cc4..dbdc893 100644 --- a/sepolicy/qti_init_shell.te +++ b/sepolicy/qti_init_shell.te @@ -12,6 +12,4 @@ allow qti_init_shell vendor_bt_data_file:file { create getattr open read write } # Allow qti_init_shell to read cmdline allow qti_init_shell proc_cmdline:file { getattr open read }; -get_prop(qti_init_shell, wcg_prop) set_prop(qti_init_shell, oem_unlock_prop) -set_prop(qti_init_shell, bt_mac_prop) diff --git a/sepolicy/shell.te b/sepolicy/shell.te deleted file mode 100644 index df6b670..0000000 --- a/sepolicy/shell.te +++ /dev/null @@ -1 +0,0 @@ -get_prop(shell, wcg_prop) diff --git a/sepolicy/system_app.te b/sepolicy/system_app.te index 0fbc30e..1158907 100644 --- a/sepolicy/system_app.te +++ b/sepolicy/system_app.te @@ -4,4 +4,3 @@ allow system_app shell_prop:property_service set; binder_call(system_app, wificond); get_prop(system_app, oem_unlock_prop); -get_prop(system_app, bt_mac_prop); diff --git a/sepolicy/wcg_mac.te b/sepolicy/wcg_mac.te deleted file mode 100644 index 2e8ec94..0000000 --- a/sepolicy/wcg_mac.te +++ /dev/null @@ -1,10 +0,0 @@ -type wcg_mac, domain; -type wcg_mac_exec, exec_type, vendor_file_type, file_type; - -# Allow for transition from init domain to wcg_mac -init_daemon_domain(wcg_mac) - -# Allow wcg_mac to set sys.wifimac -set_prop(wcg_mac, wcg_prop) - -allow wcg_mac proc:file { open read }; |