Merge "Added sysfs_camera file type and cameraserver allow rules."

This commit is contained in:
Max Bires
2017-02-15 16:38:30 +00:00
committed by Android (Google) Code Review
3 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
allow cameraserver gpu_device:chr_file rw_file_perms;
set_prop(cameraserver, camera_prop)
allow cameraserver sysfs_camera:file r_file_perms;
allow cameraserver sysfs_camera:dir search;

View File

@@ -1,4 +1,5 @@
type sysfs_graphics, sysfs_type, fs_type;
type sysfs_camera, sysfs_type, fs_type;
type qmuxd_socket, file_type;
type netmgrd_socket, file_type;
type thermal_socket, file_type;

View File

@@ -43,6 +43,7 @@
/sys/devices/virtual/thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/module/msm_thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/devices/virtual/graphics/fb([0-2])+/idle_time u:object_r:sysfs_graphics:s0
/sys/devices/soc/8c0000\.qcom,msm-cam(/.*)? u:object_r:sysfs_camera:s0
# files in /system
/system/bin/init\.power\.sh u:object_r:init_power_exec:s0