From d566d6d2e626c3bf17ef772404962cd0e8522f76 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Thu, 25 Jun 2020 21:52:33 +0900 Subject: [PATCH] Rename exported_wifi_prop to wifi_hal_prop To remove bad context names exported*_prop Bug: 155844385 Test: m selinux_policy Change-Id: I3a1e355f510e6328d05e76ba2961562fe711da1b --- sepolicy/vendor/cnd.te | 2 ++ sepolicy/vendor/hal_power_stats_default.te | 2 +- sepolicy/vendor/location.te | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sepolicy/vendor/cnd.te b/sepolicy/vendor/cnd.te index d7aa8103..087017ac 100644 --- a/sepolicy/vendor/cnd.te +++ b/sepolicy/vendor/cnd.te @@ -34,3 +34,5 @@ userdebug_or_eng(` allow cnd diag_device:chr_file rw_file_perms; ') dontaudit cnd diag_device:chr_file rw_file_perms; + +get_prop(cnd, wifi_hal_prop) diff --git a/sepolicy/vendor/hal_power_stats_default.te b/sepolicy/vendor/hal_power_stats_default.te index 5c773db3..d3056de9 100644 --- a/sepolicy/vendor/hal_power_stats_default.te +++ b/sepolicy/vendor/hal_power_stats_default.te @@ -1,7 +1,7 @@ # power.stats HAL needs access to rpm, and wlan sysfs nodes in /d/ r_dir_file(hal_power_stats_default, debugfs_rpm) r_dir_file(hal_power_stats_default, debugfs_wlan) -get_prop(hal_power_stats_default, exported_wifi_prop) # Needed to detect wifi on/off +get_prop(hal_power_stats_default, wifi_hal_prop) # Needed to detect wifi on/off # power.stats HAL needs access to the easel sysfs node r_dir_file(hal_power_stats_default, sysfs_easel) diff --git a/sepolicy/vendor/location.te b/sepolicy/vendor/location.te index 02f8d4a1..aaf5a847 100644 --- a/sepolicy/vendor/location.te +++ b/sepolicy/vendor/location.te @@ -47,3 +47,5 @@ allow location location_data_file:{ file sock_file } create_file_perms; userdebug_or_eng(` allow location diag_device:chr_file rw_file_perms; ') + +get_prop(location, wifi_hal_prop)