Files
device_xiaomi_rosemary/sepolicy/vendor/hal_sensors_default.te
Matsvei Niaverau 8305bf5142 rosemary: sepolicy: Allow elliptic sensors HAL access audio
* Partially from: 7861ee195d/sepolicy/vendor/hal_sensors_default.te

Change-Id: Id664e4cb80aee1c749c4493cc97fd51aa95b14c0
2023-04-25 17:59:38 +02:00

29 lines
1.4 KiB
Plaintext

# Allow access to the HALs
hal_client_domain(hal_sensors_default, hal_audio)
# Allow binder communication with hal_audio_default
binder_call(hal_sensors_default, hal_audio_default)
# Allow hal_sensors_default to find hal_audio_hwservice
allow hal_sensors_default hal_audio_hwservice:hwservice_manager find;
binder_call(hal_sensors_default, mtk_hal_audio)
allow hal_sensors_default m_acc_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_als_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_baro_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_fusion_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_gyro_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_mag_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_ps_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_situ_misc_device:chr_file r_file_perms;
allow hal_sensors_default m_step_c_misc_device:chr_file r_file_perms;
allow hal_sensors_default nvcfg_file:dir rw_dir_perms;
allow hal_sensors_default nvcfg_file:file create_file_perms;
allow hal_sensors_default sensor_device:chr_file r_file_perms;
allow hal_sensors_default sensorlist_device:chr_file rw_file_perms;
allow hal_sensors_default sysfs_sensor:dir r_dir_perms;
allow hal_sensors_default sysfs_sensor:file rw_file_perms;
allow hal_sensors_default sensor_data_file:dir rw_dir_perms;
allow hal_sensors_default sensor_data_file:file create_file_perms;