device_xiaomi_sm6150-common/sepolicy/vendor/hal_sensors_default.te
basamaryan 3df5cd506c
sm6150-common: Commonize sepolicy
Taken from davinci, courbet, surya, sweet, and sweet2

Change-Id: Ie9bd3354d42a36e88004ee77343e0da5397a0eba
2024-10-15 13:25:09 -04:00

16 lines
628 B
Plaintext

type vendor_sysfs_iio, fs_type, sysfs_type;
type vendor_elliptic_device, dev_type;
vendor_internal_prop(persist_sensors_prop)
allow hal_sensors_default hal_audio_default:unix_stream_socket connectto;
allow hal_sensors_default audio_socket:sock_file rw_file_perms;
allow hal_sensors_default iio_device:chr_file rw_file_perms;
allow hal_sensors_default vendor_elliptic_device:chr_file rw_file_perms;
allow hal_sensors_default vendor_sysfs_iio:dir r_dir_perms;
allow hal_sensors_default vendor_sysfs_iio:file rw_file_perms;
get_prop(hal_sensors_default, persist_sensors_prop)
get_prop(hal_sensors_default, vendor_adsprpc_prop)