sm7325-common: sepolicy: label cam-sync/cam-req-mgr v4l name

and allow desktopcamera hal access to it

Change-Id: I518002f0ef620e708d72f7f53b94486913d8b974
This commit is contained in:
SGCMarkus 2022-08-11 18:47:54 +02:00
parent c8748021a6
commit 163b60efb0
3 changed files with 8 additions and 0 deletions

View File

@ -28,3 +28,6 @@ type vendor_sysfs_sku_version, fs_type, sysfs_type;
# Touchscreen # Touchscreen
type vendor_sysfs_touchpanel, fs_type, sysfs_type; type vendor_sysfs_touchpanel, fs_type, sysfs_type;
# V4L2 Name
type vendor_sysfs_v4l2_name, fs_type, sysfs_type;

View File

@ -80,6 +80,10 @@
/(vendor|system/vendor)/bin/init\.mmi\.touch\.sh u:object_r:vendor_init_touch_exec:s0 /(vendor|system/vendor)/bin/init\.mmi\.touch\.sh u:object_r:vendor_init_touch_exec:s0
/(vendor|system/vendor)/bin/init\.oem\.hw\.sh u:object_r:vendor_init_hw_exec:s0 /(vendor|system/vendor)/bin/init\.oem\.hw\.sh u:object_r:vendor_init_hw_exec:s0
# V4L2 Name
/sys/devices/platform/soc/soc:qcom,cam-sync/video4linux/video([0-9])+/name u:object_r:vendor_sysfs_v4l2_name:s0
/sys/devices/platform/soc/soc:qcom,cam-req-mgr/video4linux/video([0-9])+/name u:object_r:vendor_sysfs_v4l2_name:s0
# Wakeups # Wakeups
/sys/devices/virtual/input/input[0-9]+/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0 /sys/devices/virtual/input/input[0-9]+/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/[^*]+/wakeup/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0 /sys/devices/platform/soc/[^*]+/wakeup/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0

View File

@ -0,0 +1 @@
allow hal_cameradesktop_default vendor_sysfs_v4l2_name:file r_file_perms;