diff options
Diffstat (limited to 'legacy-common')
-rw-r--r-- | legacy-common/file_contexts | 2 | ||||
-rw-r--r-- | legacy-common/mm-qcamerad.te | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/legacy-common/file_contexts b/legacy-common/file_contexts index 08ab1fe5..f5ade7d6 100644 --- a/legacy-common/file_contexts +++ b/legacy-common/file_contexts @@ -39,6 +39,8 @@ # Camera /data/fdAlbum u:object_r:camera_data_file:s0 +/sys/devices(/platform)?/soc\.0/[0-9a-f]+\.qcom,msm-cam/video4linux/video[0-33]/name(/.*)? u:object_r:sysfs_graphics:s0 +/sys/devices(/platform)?/soc\.0/[0-9a-f]+\.qcom,cci/[0-9]+\.qcom,camera/video4linux/video[0-33]/name(/.*)? u:object_r:sysfs_graphics:s0 # UIO /sys/devices(/platform)?/soc\.0/[0-9a-f]+\.qcom,msm-core/uio/uio[0-9]+(/.*)? u:object_r:sysfs_uio_file:s0 diff --git a/legacy-common/mm-qcamerad.te b/legacy-common/mm-qcamerad.te index 3e535734..4705ccd7 100644 --- a/legacy-common/mm-qcamerad.te +++ b/legacy-common/mm-qcamerad.te @@ -11,3 +11,5 @@ allow mm-qcamerad sensorservice_service:service_manager find; # /data/fdAlbum type_transition mm-qcamerad system_data_file:file camera_data_file "fdAlbum"; allow mm-qcamerad camera_data_file:file create_file_perms; + +r_dir_file(mm-qcamerad, sysfs_graphics) |