summaryrefslogtreecommitdiffstats
path: root/sdm660
diff options
context:
space:
mode:
authorClarence Wong <cwong@codeaurora.org>2018-01-17 19:55:38 -0800
committerClarence Wong <cwong@codeaurora.org>2018-02-23 15:13:53 -0800
commit703956a21e6cc714459b8726f135b8701dd90b80 (patch)
treefd2e7865c1c7db48ec768de011e2e3d3c7633e04 /sdm660
parent0a62b23251c2304005193c5cfe2ae59004fa260f (diff)
downloadandroid_device_qcom_sepolicy-703956a21e6cc714459b8726f135b8701dd90b80.tar.gz
android_device_qcom_sepolicy-703956a21e6cc714459b8726f135b8701dd90b80.tar.bz2
android_device_qcom_sepolicy-703956a21e6cc714459b8726f135b8701dd90b80.zip
Declare context for emmc for common
Declare context for emmc and give permission for RIDL2.0. RIDL2.0 needs to be able to write to sysfs dload and dload_mode to enable emmc crashdumps and mini crashdumps. It also needs to be able to read/write to the rawdump device block to copy the crashdump for post processing and mark it as read. Initial support was for 8937, 8996, 8953, 8976, and 8998 for full dumps and then support was added for sdm660/670 for minidumps. This solution moves the target specific to common, which was needlessly getting replicated for new targets. Change-Id: I6a0a692a52c4a4a51716f844ea5361af2a2d12da CRs-Fixed: 2195014
Diffstat (limited to 'sdm660')
-rw-r--r--sdm660/file.te2
-rw-r--r--sdm660/file_contexts2
-rw-r--r--sdm660/qti-logkit.te33
3 files changed, 0 insertions, 37 deletions
diff --git a/sdm660/file.te b/sdm660/file.te
index 71310e13..814b29a4 100644
--- a/sdm660/file.te
+++ b/sdm660/file.te
@@ -25,7 +25,5 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#sysfs emmc dload type
-type sysfs_emmc_dload, sysfs_type, fs_type;
#sysfs rndis usb type
type sysfs_rndis_usb, sysfs_type, fs_type;
diff --git a/sdm660/file_contexts b/sdm660/file_contexts
index 4f7b3018..042bf6e0 100644
--- a/sdm660/file_contexts
+++ b/sdm660/file_contexts
@@ -146,8 +146,6 @@
##################################
# rawdump partition
-/sys/kernel/dload/emmc_dload u:object_r:sysfs_emmc_dload:s0
-/sys/kernel/dload/dload_mode u:object_r:sysfs_emmc_dload:s0
#EMMC
/dev/block/platform/soc/c0c4000.sdhci/by-name/rawdump u:object_r:rawdump_block_device:s0
diff --git a/sdm660/qti-logkit.te b/sdm660/qti-logkit.te
deleted file mode 100644
index af328f52..00000000
--- a/sdm660/qti-logkit.te
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright (c) 2017, 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.
-
-# allow qti_logkit for rawdump partition
-allow qti_logkit block_device:dir r_dir_perms;
-allow qti_logkit rawdump_block_device:blk_file rw_file_perms;
-
-# allow qti_logkit for sysfs emmc dload node
-allow qti_logkit sysfs_emmc_dload:file rw_file_perms;