blob: 5f02d06d1be47dfcdc6e455df58262a471b6e11a [file] [log] [blame]
# TODO: b/34980308 : Do not use the data or persist partition.
#Allow access to nanohub device
allow hal_sensors sensors_device:chr_file rw_file_perms;
# Allow access to the nanohub_lock_file to allow the contexthub and
# the sensor hal to synchronize access
allow hal_sensors nanohub_lock_file:dir create_dir_perms;
allow hal_sensors nanohub_lock_file:file create_file_perms;
# Allow acess to uinput for lidstate determination
allow hal_sensors uhid_device:chr_file rw_file_perms;
# Allow access to persistent partition for calibration data
allow hal_sensors persist_file:dir search;
allow hal_sensors sensors_cal_file:dir create_dir_perms;
allow hal_sensors sensors_cal_file:file create_file_perms;
# Allow access to saved settings file
allow hal_sensors sensors_saved_settings_file:dir create_dir_perms;
allow hal_sensors sensors_saved_settings_file:file create_file_perms;
# Allow access to sensor properties
set_prop(hal_sensors, sensors_prop)