Verified Commit 8e2802c1 authored by steadfasterX's avatar steadfasterX 😁
Browse files

universal7870:selinux fix gyroscope/magnetometer


Signed-off-by: steadfasterX's avatarsteadfasterX <steadfasterX@gmail.com>
parent 7c9c5635
......@@ -67,3 +67,6 @@ type wifi_vendor_data_file, file_type, data_file_type;
# sfX debug
type boot_log_file, file_type, data_file_type, core_data_file_type;
# magnetometer
type gyro_data_file, file_type, data_file_type, core_data_file_type;
......@@ -100,6 +100,9 @@
/data/gps/\.gpslogd\.pipe u:object_r:gps_data_file:s0
/data/gps/nmeapipe u:object_r:gps_data_file:s0
# magnetometer
/data/system/yas_lib.cfg(.tmp)? u:object_r:gyro_data_file:s0
/data/biometrics(/.*)? u:object_r:fingerprintd_data_file:s0
# camera
......
......@@ -11,3 +11,7 @@ allow hal_sensors_default sysfs_input:dir { open read search };
allow hal_sensors_default sysfs_input:file { open read write };
allow hal_sensors_default sysfs_sensors:dir search;
allow hal_sensors_default sysfs_sensors:file { getattr open read write };
# magnetometer
allow hal_sensors_default gyro_data_file:dir { write add_name search };
allow hal_sensors_default gyro_data_file:file { create open read write };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment