sm7250-common: sepolicy: Remove generic sysfs references

* We labeled everything

+

* Remove RTC label as we have a duplicate of it

Signed-off-by: xSylla <syllamodder@gmail.com>
This commit is contained in:
SebaUbuntu 2021-07-29 17:22:40 +02:00 committed by xSylla
parent 20b6233939
commit fd28bafa34
6 changed files with 0 additions and 11 deletions

View File

@ -35,9 +35,6 @@ genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-05/c440000.q
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-05/c440000.qcom,spmi:qcom,pm6150l@5:qcom,leds@d300/leds/led:switch_0/brightness u:object_r:sysfs_leds:s0
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-05/c440000.qcom,spmi:qcom,pm6150l@5:qcom,leds@d300/leds/led:switch_1/brightness u:object_r:sysfs_leds:s0
# RTC
genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm8150@0:qcom,pm8150_rtc/rtc u:object_r:sysfs_rtc:s0
# Touchpanel
genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0

View File

@ -39,5 +39,4 @@ get_prop(system_server, vendor_fp_prop);
set_prop(hal_fingerprint_default, vendor_fp_prop)
allow hal_fingerprint_default vendor_sysfs_spss:dir { search };
allow hal_fingerprint_default sysfs:file { write getattr };
allow hal_fingerprint_default vendor_sysfs_spss:file { open read };

View File

@ -1,3 +1,2 @@
allow hal_health_default sysfs:file rw_file_perms;;
allow hal_health_default sysfs_wakeup:dir r_dir_perms;
allow hal_health_default sysfs_wakeup:file r_file_perms;

View File

@ -1,4 +1,2 @@
allow hal_power_stats_default vendor_sysfs_iio:dir r_dir_perms;
allow hal_power_stats_default vendor_sysfs_iio:file r_file_perms;
allow hal_power_stats_default sysfs:dir r_dir_perms;
allow hal_power_stats_default sysfs:file r_file_perms;

View File

@ -9,9 +9,6 @@ allow mi_thermald self:capability { chown fowner fsetid };
allow mi_thermald thermal_data_file:dir rw_dir_perms;
allow mi_thermald thermal_data_file:file create_file_perms;
allow mi_thermald sysfs:file write;
r_dir_file(mi_thermald, sysfs)
r_dir_file(mi_thermald, sysfs_battery_supply)
r_dir_file(mi_thermald, sysfs_devices_system_cpu)
r_dir_file(mi_thermald, vendor_sysfs_graphics)

View File

@ -9,7 +9,6 @@ allow vendor_init {
}:file w_file_perms;
allow vendor_init block_device:lnk_file setattr;
allow vendor_init sysfs:lnk_file setattr;
allow vendor_init vendor_camera_prop:property_service set;
allow vendor_init input_device:chr_file { create setattr unlink rw_file_perms };