android_device_oneplus_sm81.../sepolicy/vendor/vendor_init.te

32 lines
1015 B
Plaintext

typeattribute vendor_init data_between_core_and_vendor_violators;
# Allow vendor_init to read and write to ion_device
allow vendor_init ion_device:chr_file rw_file_perms;
# Allow vendor_init to read and write to tee_device
allow vendor_init tee_device:chr_file rw_file_perms;
# Allow vendor_init to write to sysfs_ssr_toggl
allow vendor_init vendor_sysfs_ssr_toggle:file w_file_perms;
# Allow init to create fpc_images_file
allow vendor_init fpc_images_file:dir create_dir_perms;
# Allow init to create nfc_data_file
allow vendor_init nfc_data_file:dir create_dir_perms;
# Allow init to create tmpfs
allow vendor_init tmpfs:dir create_dir_perms;
# Allow vendor_init to set vendor_disable_spu_prop
set_prop(vendor_init, vendor_disable_spu_prop)
# Allow vendor_init to get vendor_tee_listener_prop
get_prop(vendor_init, vendor_tee_listener_prop)
# Allow vendor_init to set vendor_nfc_prop
set_prop(vendor_init, vendor_nfc_prop)
# Allow vendor init to set SSR property
set_prop(vendor_init, vendor_ssr_prop)