From ddda7e8020fd68effe951a1157ff8d7b27b1f9ff Mon Sep 17 00:00:00 2001
From: Tri Vo <trong@google.com>
Date: Fri, 9 Nov 2018 13:59:17 -0800
Subject: [PATCH] Don't label /dev/cam from system sepolicy

With Treble, cameraserver no longer depends on camera devices directly.
Moreover, pixel 3 doesn't have /dev/cam node.

We still keep "camera_device" type around since vendor policy uses it to
label its /dev nodes.

Bug: 110962171
Test: boot aosp_walleye
Test: camera app still works
Change-Id: If12d640c2a0006b9fc3c9f6704285eb8eb66c626
---
 private/file_contexts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/private/file_contexts b/private/file_contexts
index 712774582..32e56e0a7 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -82,7 +82,6 @@
 /dev/block/ram[0-9]*	u:object_r:ram_device:s0
 /dev/block/zram[0-9]*	u:object_r:ram_device:s0
 /dev/bus/usb(.*)?       u:object_r:usb_device:s0
-/dev/cam		u:object_r:camera_device:s0
 /dev/console		u:object_r:console_device:s0
 /dev/cpuctl(/.*)?	u:object_r:cpuctl_device:s0
 /dev/memcg(/.*)?        u:object_r:cgroup:s0
-- 
GitLab