summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyotaek Shim <hyotaek.shim@samsung.com>2019-11-19 17:02:21 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2019-11-19 17:07:14 +0900
commit4eff162ddee41a2db8f767b86eee76fcbad57fd7 (patch)
treedc5fe2ac09bdd3949c03c475fa51107109582242
parentb0dc5013c452a6ae14a44622df552b9e1740bea8 (diff)
downloaddevice-tm1-4eff162ddee41a2db8f767b86eee76fcbad57fd7.tar.gz
device-tm1-4eff162ddee41a2db8f767b86eee76fcbad57fd7.tar.bz2
device-tm1-4eff162ddee41a2db8f767b86eee76fcbad57fd7.zip
Support access control for privacy-privilege nodes based on dummy mount
TM1 provides privacy-privilege access control for sprd_image, isp, and sensor with dummy mount Change-Id: I8a9cdef8d326f101be2984139619ef228120391c Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rw-r--r--rules/61-video.rules7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules/61-video.rules b/rules/61-video.rules
index 7c07232..cd94054 100644
--- a/rules/61-video.rules
+++ b/rules/61-video.rules
@@ -4,11 +4,12 @@ ACTION!="add", GOTO="video_end"
KERNEL=="video0", GROUP="video", SECLABEL{smack}="*", MODE="0660"
KERNEL=="sprd_dma_copy", GROUP="video", SECLABEL{smack}="*", MODE="0660"
KERNEL=="sprd_jpg", GROUP="video", SECLABEL{smack}="*", MODE="0660"
-KERNEL=="sprd_image", GROUP="priv_camera", SECLABEL{smack}="*", MODE="0660"
-KERNEL=="sprd_isp", GROUP="priv_camera", SECLABEL{smack}="*", MODE="0660"
+# TM1 provides privacy-privilege access control for sprd_image, isp, and sensor with dummy mount
+KERNEL=="sprd_image", GROUP="priv_camera", SECLABEL{smack}="*", MODE="0666"
+KERNEL=="sprd_isp", GROUP="priv_camera", SECLABEL{smack}="*", MODE="0666"
KERNEL=="sprd_rotation", GROUP="video", SECLABEL{smack}="*", MODE="0660"
KERNEL=="sprd_scale", GROUP="video", SECLABEL{smack}="*", MODE="0660"
-KERNEL=="sprd_sensor", GROUP="priv_camera", SECLABEL{smack}="*", MODE="0660"
+KERNEL=="sprd_sensor", GROUP="priv_camera", SECLABEL{smack}="*", MODE="0666"
KERNEL=="sprd_vsp", GROUP="video", SECLABEL{smack}="*", MODE="0660"
LABEL="video_end"