sepolicy: qti: Allow init to label vendor_reserve_partition

[    0.983556] init: Running restorecon...
[    0.989819] selinux: SELinux: Could not set context for /dev/block/platform/soc/1d84000.ufshc/by-name/oplusreserve2:  Permission denied
[    0.989819] audit: type=1400 audit(10810748.011:9): avc:  denied  { relabelto } for  pid=1 comm="init" name="oplusreserve2" dev="tmpfs" ino=35 scontext=u:r:init:s0 tcontext=u:object_r:vendor_reserve_partition:s0 tclass=lnk_file permissive=0

Change-Id: I5b356016e6f5e2b2564179eb2b87bf99c4ee78e2
This commit is contained in:
dianlujitao
2025-09-19 23:03:52 +08:00
committed by madmax7896
parent 08f329df34
commit 739fc8c632

1
sepolicy/qti/vendor/init.te vendored Normal file
View File

@@ -0,0 +1 @@
allow init vendor_reserve_partition:{ blk_file lnk_file } relabelto;