DSBP property is set by multiple mediatek devices to declare support for the same. It is already labeled in property_contexts but seems to missing permission for vendor_init to actually set it. Denial observed without this change: [ 4.713173] .(7)[1:init]selinux: avc: denied { set } for property=persist.vendor.radio.mtk_dsbp_support pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:mtk_dsbp_support_prop:s0 tclass=property_service permissive=1\x0a Test: Boot and observe that propery is set without any denial Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com> Change-Id: I0cc0c2cadbf9edb3fb205b9e52074f852fe08658
SELinux policy for MediaTek devices
Don't recurse into the platform makefiles. We don't care about them, and we
don't want to force a reset of BOARD_SEPOLICY_DIRS
.
If you want to use these policies, add a
include device/mediatek/sepolicy/sepolicy.mk
to your device's BoardConfig. It is highly recommended that in case you have
your own BOARD_SEPOLICY_DIRS
declaration, the inclusion happens before
those lines
Repository Details
This repository uses device/mediatek/wembley-sepolicy as base till 4769fb0d973bf079934054c6c5423ca06d67010a
.
After that Google's device-specific changes starts.
Till 4769fb0d973bf079934054c6c5423ca06d67010a
, this repository is similar to
the basic sepolicy repository provided by MediaTek to the OEMs.
Description
Languages
Makefile
100%