init-insmod-sh: fix avc error

avc: denied { set } for property=vendor.all.modules.ready pid=1238 uid=0 gid=0 scontext=u:r:init-insmod-sh:s0 tcontext=u:object_r:vendor_ready_prop:s0 tclass=property_service permissive=0

Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: I92aa94db50884ea6d499fad785ef49853d831f56
This commit is contained in:
Robin Peng 2022-07-18 12:53:43 +08:00
parent 7efce53e84
commit dbd71b58f5
2 changed files with 1 additions and 1 deletions

View file

@ -10,6 +10,7 @@ allow init-insmod-sh self:capability sys_nice;
allow init-insmod-sh kernel:process setsched; allow init-insmod-sh kernel:process setsched;
set_prop(init-insmod-sh, vendor_device_prop) set_prop(init-insmod-sh, vendor_device_prop)
set_prop(init-insmod-sh, vendor_ready_prop)
dontaudit init-insmod-sh proc_cmdline:file r_file_perms; dontaudit init-insmod-sh proc_cmdline:file r_file_perms;

View file

@ -3,7 +3,6 @@ allow vendor_init bootdevice_sysdev:file create_file_perms;
set_prop(vendor_init, vendor_ssrdump_prop) set_prop(vendor_init, vendor_ssrdump_prop)
set_prop(vendor_init, vendor_carrier_prop) set_prop(vendor_init, vendor_carrier_prop)
set_prop(vendor_init, vendor_cbd_prop) set_prop(vendor_init, vendor_cbd_prop)
set_prop(vendor_init, vendor_ready_prop)
get_prop(vendor_init, vendor_battery_profile_prop) get_prop(vendor_init, vendor_battery_profile_prop)
set_prop(vendor_init, vendor_device_prop) set_prop(vendor_init, vendor_device_prop)
set_prop(vendor_init, vendor_modem_prop) set_prop(vendor_init, vendor_modem_prop)