summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/file.te6
-rw-r--r--msm8953/file_contexts4
-rw-r--r--msm8953/genfs_contexts29
-rw-r--r--msm8953/init_shell.te2
-rw-r--r--msm8953/mm-qcamerad.te3
5 files changed, 30 insertions, 14 deletions
diff --git a/common/file.te b/common/file.te
index 994cc040..2f1895c3 100644
--- a/common/file.te
+++ b/common/file.te
@@ -85,12 +85,6 @@ type sysfs_usb_mtp_device, sysfs_type, fs_type;
# sysfs module for usb_f_mtp/parameters
type sysfs_spmi_device, sysfs_type, fs_type;
-# sysfs devices for enable
-type sysfs_dcc_device, sysfs_type, fs_type;
-
-# sysfs devices for video4linux
-type sysfs_video4linux_device, sysfs_type, fs_type;
-
# sysfs vadc device for hvdcp/quickcharge
type sysfs_vadc_dev, sysfs_type, fs_type;
# sysfs spmi device for hvdcp/quickcharge
diff --git a/msm8953/file_contexts b/msm8953/file_contexts
index a9c0142a..e7fa97d1 100644
--- a/msm8953/file_contexts
+++ b/msm8953/file_contexts
@@ -56,10 +56,6 @@
/sys/devices/platform/soc/200f000\.qcom,spmi/spmi-0/spmi0-03/200f000\.qcom,spmi:qcom,pmi8950@3:qcom,haptic@c000/leds/vibrator/activate u:object_r:sysfs_spmi_device:s0
/sys/devices/platform/soc/200f000.qcom,spmi/spmi-0/spmi0-03/200f000.qcom,spmi:qcom,pmi632@3:qcom,vibrator@5700/leds/vibrator/activate u:object_r:sysfs_spmi_device:s0
-/sys/devices/platform/soc/b3000.dcc(/.*)? u:object_r:sysfs_dcc_device:s0
-
-#video4linux_
-/sys/devices/platform/soc/1b00000.qcom,msm-cam/video4linux/video0/name u:object_r:sysfs_video4linux_device:s0
############################################################################################
#Same hal process libs
diff --git a/msm8953/genfs_contexts b/msm8953/genfs_contexts
new file mode 100644
index 00000000..a6df7878
--- /dev/null
+++ b/msm8953/genfs_contexts
@@ -0,0 +1,29 @@
+# Copyright (c) 2018, The Linux Foundation. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+# * Neither the name of The Linux Foundation nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+genfscon sysfs /devices/platform/soc/1b00000.qcom,msm-cam/video4linux/video0/name u:object_r:sysfs_graphics:s0
+
diff --git a/msm8953/init_shell.te b/msm8953/init_shell.te
index 2a2bef12..d448c248 100644
--- a/msm8953/init_shell.te
+++ b/msm8953/init_shell.te
@@ -36,5 +36,3 @@ allow qti_init_shell {
allow qti_init_shell regionalization_file:dir r_dir_perms;
allow qti_init_shell regionalization_file:file create_file_perms;
-# For dcc
-allow qti_init_shell sysfs_dcc_device:file rw_file_perms;
diff --git a/msm8953/mm-qcamerad.te b/msm8953/mm-qcamerad.te
index 5ed285a5..354b6133 100644
--- a/msm8953/mm-qcamerad.te
+++ b/msm8953/mm-qcamerad.te
@@ -26,5 +26,4 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#for v4L node "name" access
-allow mm-qcamerad sysfs_graphics:file r_file_perms;
-allow mm-qcamerad sysfs_video4linux_device:file rw_file_perms;
+allow mm-qcamerad sysfs_graphics:file rw_file_perms;