common: sepolicy: add vendor_qti_init_shell rules in the correct file

Change-Id: I4d9f7db07b43905f8c140892100c37c769556b8f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
chrisl7 2024-08-01 18:40:41 +00:00 committed by CHRISL7
parent a8380809ac
commit 21505b791e
2 changed files with 10 additions and 15 deletions

View File

@ -8,3 +8,13 @@ get_prop(vendor_qti_init_shell, vendor_hvdcp_opti_prop)
allow vendor_qti_init_shell proc_watermark_boost_factor:file rw_file_perms;
allow vendor_qti_init_shell proc_watermark_scale_factor:file rw_file_perms;
# Allow init.qcom.post_boot.sh to set watermark_scale_factor
allow vendor_qti_init_shell proc_watermark_scale_factor:file w_file_perms;
# Allow changing swap settings
allow vendor_qti_init_shell proc_swaps:file rw_file_perms;
allow vendor_qti_init_shell vendor_proc_swappiness:file rw_file_perms;
# Allow tuning UFS nodes
allow vendor_qti_init_shell vendor_sysfs_scsi_host:file rw_file_perms;

View File

@ -1,16 +1,6 @@
# Allow init.aospa.perf.rc to read CPUSets
allow vendor_init cgroup:file r_file_perms;
# Allow init.qcom.post_boot.sh to set watermark_scale_factor
allow vendor_qti_init_shell proc_watermark_scale_factor:file w_file_perms;
# Allow init.qcom.usb.sh to create files in uvc.0
allow vendor_qti_init_shell configfs:dir create_dir_perms;
allow vendor_qti_init_shell configfs:{
file
lnk_file
} create_file_perms;
# Allow build.prop to set vendor.all.modules.ready
set_prop(vendor_init, vendor_modprobe_prop)
@ -18,9 +8,4 @@ set_prop(vendor_init, vendor_modprobe_prop)
set_prop(vendor_init, vendor_persist_rcs_qti_prop)
# Allow changing swap settings
allow vendor_qti_init_shell proc_swaps:file rw_file_perms;
allow vendor_qti_init_shell vendor_proc_swappiness:file rw_file_perms;
allow vendor_init vendor_proc_swappiness:file rw_file_perms;
# Allow tuning UFS nodes
allow vendor_qti_init_shell vendor_sysfs_scsi_host:file rw_file_perms;