android_device_oneplus_dre/sepolicy/private/init.te
LuK1337 c31ea05d44 sdm845-common: sepolicy: Allow init to setattr sysfs_fod
Change-Id: I7780438d8c98fa0fb48acd4b66e3519586a7f6e7
2020-05-28 22:29:29 +02:00

12 lines
318 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_fod
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;