vendor_init: fix avc error

avc: denied { getattr } for comm="init" name="/" dev="sda19" ino=2 scontext=u:r:vendor_init:s0 tcontext=u:object_r:modem_img_file:s0 tclass=filesystem permissive=0

Bug: 225151104
Change-Id: I508aa6b85039edc4b5a8746aaa602f1131768630
This commit is contained in:
SalmaxChang 2022-03-21 21:28:03 +08:00 committed by Salmax Chang
parent 997b8974ef
commit 6dd3de7813
2 changed files with 2 additions and 2 deletions

View file

@ -2,6 +2,4 @@
dontaudit vendor_init thermal_link_device:file { create };
# b/221384939
dontaudit vendor_init vendor_battery_defender_prop:property_service { set };
# b/225279974
dontaudit vendor_init modem_img_file:filesystem { getattr };

View file

@ -26,3 +26,5 @@ set_prop(vendor_init, vendor_fingerprint_prop)
# Touch
allow vendor_init proc_touch:file w_file_perms;
allow vendor_init modem_img_file:filesystem { getattr };