diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2023-01-20 12:07:11 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-06-13 00:20:25 +0800 |
commit | 4f5ce9f564b8b0b49cdbeb97fb80363cdb32eb1d (patch) | |
tree | 48b6580c50f595b9778284bcc1b6624077f946fa | |
parent | 1abb1f411920d3b6a6e84943fe2289859d43adcc (diff) |
sepolicy_vndr: generic: Allow init write to discard_max_bytes
Change-Id: If22a1fe0036f49d5cfb3f3c21cd9c44b96ac6ae8
-rw-r--r-- | generic/vendor/common/init.te | 2 | ||||
-rw-r--r-- | generic/vendor/kona/genfs_contexts | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/generic/vendor/common/init.te b/generic/vendor/common/init.te index 21268e50..6c947266 100644 --- a/generic/vendor/common/init.te +++ b/generic/vendor/common/init.te @@ -75,6 +75,8 @@ allow init sysfs_zram:file r_file_perms; allow init vendor_sysfs_boot_adsp:file w_file_perms; +allow init vendor_sysfs_mmc_host:file w_file_perms; + allow init bt_firmware_file:filesystem getattr; allow init firmware_file:filesystem getattr; diff --git a/generic/vendor/kona/genfs_contexts b/generic/vendor/kona/genfs_contexts index db20090a..0538da4a 100644 --- a/generic/vendor/kona/genfs_contexts +++ b/generic/vendor/kona/genfs_contexts @@ -157,3 +157,6 @@ genfscon sysfs /devices/platform/soc/soc:qcom,ipa_fws/wakeup u:object_r:sysfs_wa genfscon sysfs /devices/platform/soc/soc:qcom,kgsl-hyp/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:qcom,smp2p-adsp/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:qcom,smp2p_sleepstate/wakeup u:object_r:sysfs_wakeup:s0 + +# UFS +genfscon sysfs /devices/platform/soc/1d84000.ufshc/host0/target0:0:0/0:0:0:4/block/sde/queue/discard_max_bytes u:object_r:vendor_sysfs_mmc_host:s0 |