summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormandyshen <mandyshen@google.com>2020-03-26 11:14:21 +0800
committerMandy Shen <mandyshen@google.com>2020-04-01 19:35:39 +0000
commit488607751a63a5d27653c6feecd29a925ca0ada7 (patch)
tree2cd2dfcf3687e6936f362cda69ba97b962a817a4
parent6bf1d5cfb83d5402e08160cad0d5b422da4b2ef7 (diff)
downloaddevice_google_wahoo-488607751a63a5d27653c6feecd29a925ca0ada7.tar.gz
device_google_wahoo-488607751a63a5d27653c6feecd29a925ca0ada7.tar.bz2
device_google_wahoo-488607751a63a5d27653c6feecd29a925ca0ada7.zip
thermal: move thermal-hal selinux policy to Pixel-wide folder
Bug: 146390555 Test: run pts thermal-hal and themal-engine via forrest Change-Id: If71b61618b902262b60e381a15ad0b495a843846
-rw-r--r--sepolicy/vendor/file_contexts2
-rw-r--r--sepolicy/vendor/genfs_contexts2
-rw-r--r--sepolicy/vendor/hal_power_default.te2
-rw-r--r--sepolicy/vendor/hal_thermal_default.te7
-rw-r--r--sepolicy/vendor/init-thermal-logging.sh.te10
-rw-r--r--sepolicy/vendor/property.te1
-rw-r--r--sepolicy/vendor/property_contexts3
-rw-r--r--sepolicy/vendor/vendor_init.te2
8 files changed, 3 insertions, 26 deletions
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index 358c9bb3..49efdf6d 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -178,7 +178,6 @@
/vendor/etc/init\.insmod\.cfg u:object_r:init-insmod-sh_exec:s0
/vendor/bin/init\.power\.sh u:object_r:init_power_exec:s0
/vendor/bin/init\.radio\.sh u:object_r:init_radio_exec:s0
-/vendor/bin/thermal_logd u:object_r:init-thermal-logging-sh_exec:s0
/vendor/bin/ramoops u:object_r:ramoops_exec:s0
/vendor/bin/init\.ramoops\.sh u:object_r:ramoops_exec:s0
/vendor/bin/init\.fingerprint\.sh u:object_r:init-fingerprint_exec:s0
@@ -193,7 +192,6 @@
/vendor/bin/hw/android\.hardware\.keymaster@3\.0-service-qti u:object_r:hal_keymaster_qti_exec:s0
/vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service-qti u:object_r:hal_gatekeeper_qti_exec:s0
/vendor/bin/hw/android\.hardware\.gnss@1\.0-service-qti u:object_r:hal_gnss_qti_exec:s0
-/vendor/bin/hw/android\.hardware\.thermal@2\.0-service\.pixel u:object_r:hal_thermal_default_exec:s0
###############################################
# same-process HAL files and their dependencies
diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts
index a1ca6a0b..6d6767ee 100644
--- a/sepolicy/vendor/genfs_contexts
+++ b/sepolicy/vendor/genfs_contexts
@@ -46,8 +46,6 @@ genfscon sysfs /devices/soc/soc:qcom,ipa_fws@1e08000 u:object
genfscon sysfs /devices/soc/cce0000.qcom,venus u:object_r:sysfs_msm_subsys:s0
genfscon sysfs /devices/soc/0.qcom,rmtfs_sharedmem u:object_r:sysfs_rmtfs:s0
genfscon sysfs /devices/soc/soc:fp_fpc1020 u:object_r:sysfs_fingerprint:s0
-genfscon sysfs /class/thermal u:object_r:sysfs_thermal:s0
-genfscon sysfs /devices/virtual/thermal u:object_r:sysfs_thermal:s0
genfscon sysfs /devices/virtual/wahoo_laser u:object_r:sysfs_laser:s0
genfscon sysfs /module/msm_thermal u:object_r:sysfs_thermal:s0
genfscon sysfs /module/printk/parameters/console_suspend u:object_r:sysfs_console_suspend:s0
diff --git a/sepolicy/vendor/hal_power_default.te b/sepolicy/vendor/hal_power_default.te
index 7e6f60d3..47988254 100644
--- a/sepolicy/vendor/hal_power_default.te
+++ b/sepolicy/vendor/hal_power_default.te
@@ -15,4 +15,4 @@ allow hal_power_default sysfs_touch:dir search;
set_prop(hal_power_default, power_prop)
# interact with thermal_config
-set_prop(hal_power_default, thermal_prop)
+set_prop(hal_power_default, vendor_thermal_prop)
diff --git a/sepolicy/vendor/hal_thermal_default.te b/sepolicy/vendor/hal_thermal_default.te
deleted file mode 100644
index 13c129f6..00000000
--- a/sepolicy/vendor/hal_thermal_default.te
+++ /dev/null
@@ -1,7 +0,0 @@
-allow hal_thermal_default sysfs_thermal:dir r_dir_perms;
-allow hal_thermal_default sysfs_thermal:file r_file_perms;
-allow hal_thermal_default sysfs_thermal:lnk_file read;
-allow hal_thermal_default proc_stat:file r_file_perms;
-
-# read thermal_config
-get_prop(hal_thermal_default, thermal_prop)
diff --git a/sepolicy/vendor/init-thermal-logging.sh.te b/sepolicy/vendor/init-thermal-logging.sh.te
deleted file mode 100644
index 3da540e3..00000000
--- a/sepolicy/vendor/init-thermal-logging.sh.te
+++ /dev/null
@@ -1,10 +0,0 @@
-type init-thermal-logging-sh, domain;
-type init-thermal-logging-sh_exec, exec_type, vendor_file_type, file_type;
-
-init_daemon_domain(init-thermal-logging-sh)
-
-userdebug_or_eng(`
- allow init-thermal-logging-sh vendor_toolbox_exec:file rx_file_perms;
- allow init-thermal-logging-sh sysfs_thermal:dir r_dir_perms;
- allow init-thermal-logging-sh sysfs_thermal:file r_file_perms;
-')
diff --git a/sepolicy/vendor/property.te b/sepolicy/vendor/property.te
index 69e4cc3c..98a921e2 100644
--- a/sepolicy/vendor/property.te
+++ b/sepolicy/vendor/property.te
@@ -11,7 +11,6 @@ type vendor_ssr_prop, property_type;
type cnss_diag_prop, property_type;
type tee_listener_prop, property_type;
type wc_prop, property_type;
-type thermal_prop, property_type;
type modem_diag_prop, property_type;
type sys_time_prop, property_type;
type atfwd_start_prop, property_type;
diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts
index 23a62394..36a2fb65 100644
--- a/sepolicy/vendor/property_contexts
+++ b/sepolicy/vendor/property_contexts
@@ -17,8 +17,7 @@ vendor.debug.ssrdump u:object_r:vendor_ssr_prop:s0
persist.sys.cnss. u:object_r:cnss_diag_prop:s0
sys.listeners.registered u:object_r:tee_listener_prop:s0
wc_transport. u:object_r:wc_prop:s0
-vendor.qcom.thermalcfg u:object_r:thermal_prop:s0
-vendor.thermal.config u:object_r:thermal_prop:s0
+vendor.qcom.thermalcfg u:object_r:vendor_thermal_prop:s0
persist.sys.modem.diag. u:object_r:modem_diag_prop:s0
sys.modem.diag. u:object_r:modem_diag_prop:s0
sys.time.set u:object_r:sys_time_prop:s0
diff --git a/sepolicy/vendor/vendor_init.te b/sepolicy/vendor/vendor_init.te
index fd786118..30051cc9 100644
--- a/sepolicy/vendor/vendor_init.te
+++ b/sepolicy/vendor/vendor_init.te
@@ -25,7 +25,7 @@ set_prop(vendor_init, modem_diag_prop)
set_prop(vendor_init, power_prop)
set_prop(vendor_init, public_vendor_default_prop)
set_prop(vendor_init, vendor_radio_prop)
-set_prop(vendor_init, thermal_prop)
+set_prop(vendor_init, vendor_thermal_prop)
set_prop(vendor_init, vendor_charge_prop)
dontaudit vendor_init unlabeled:dir getattr;