diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index b02c0674..e38e29bc 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -1,2 +1,8 @@ +# rootfs type op1_file, file_type; type op2_file, file_type; + +# sysfs +type sysfs_fpc, sysfs_type, fs_type; +type sysfs_motor, sysfs_type, fs_type; +type sysfs_project_info, sysfs_type, fs_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index e26043b2..90d7a9ca 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -2,6 +2,12 @@ /op1(/.*)? u:object_r:op1_file:s0 /op2(/.*)? u:object_r:op2_file:s0 +# Files in sysfs +/sys/devices/platform/soc/soc:fingerprint_detect/sensor_version u:object_r:sysfs_fpc:s0 +/sys/devices/platform/vendor/vendor:motor_pl(/.*)? u:object_r:sysfs_motor:s0 +/sys/elliptic/engine/calibration_v2 u:object_r:sysfs_audio:s0 +/sys/project_info(/.*)? u:object_r:sysfs_project_info:s0 + # Binaries /(vendor|system/vendor)/bin/bt-mac-generator u:object_r:bt_mac_generator_exec:s0 /(vendor|system/vendor)/bin/vl53l1_daemon_main u:object_r:vl53l1_daemon_main_exec:s0