android_device_oneplus_dre/sepolicy/private/init.te
LuK1337 b8e72b1ff6 sdm845-common: sepolicy: Address init denials
Change-Id: Ib68ab9934cc3668eae004812c56692e2a5a010d2
2020-01-21 13:09:13 +01:00

11 lines
304 B
Text

# Allow init to mount vendor configs
allow init vendor_configs_file:dir mounton;
# Allow init to chown/chmod on pseudo files in /sys
allow init {
sysfs_fpc_proximity
sysfs_graphics
}:file { open read setattr };
# Allow init to write to otg_switch
allow init sysfs_usb_supply:file w_file_perms;