sepolicy: basic: non_plat: Allow mediacodec to read sysfs_boot_mode

W omx@1.0-service: type=1400 audit(0.0:3382): avc: denied { read } for name="boot_mode" dev="sysfs" ino=7123 scontext=u:r:mediacodec:s0 tcontext=u:object_r:sysfs_boot_mode:s0 tclass=file permissive=0
E PQ      : [PQ][PQConfig] fail to open: /sys/class/BOOT/BOOT/boot/boot_mode

Change-Id: I1246c6e3290e39968f6fd309c37fcb639178fa14
This commit is contained in:
SamarV-121 2022-09-18 12:08:22 +05:30 committed by Matsvei Niaverau
parent b924fa4058
commit a5ba3aa187

View File

@ -152,3 +152,5 @@ get_prop(mediacodec, vendor_mtk_omx_core_prop)
get_prop(mediacodec, vendor_mtk_hdr_video_prop)
hal_client_domain(mediacodec, hal_mtkcodecservice)
allow mediacodec sysfs_boot_mode:file r_file_perms;