summaryrefslogtreecommitdiffstats
path: root/msm8996
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-01-16 21:01:04 +0200
committerMichael Bestas <mkbestas@lineageos.org>2018-01-16 21:06:32 +0200
commit72c0e445d8907263c10de06acad3b377d76918e1 (patch)
tree96c7be258dee557056a12f09a3ce01530fa55750 /msm8996
parente8947d54eedf8ab0738d0ff478e02d1639e043f5 (diff)
parentd06cfe5260199cea8c412ce9badfd6aa01d34fa4 (diff)
downloadandroid_device_qcom_sepolicy-72c0e445d8907263c10de06acad3b377d76918e1.tar.gz
android_device_qcom_sepolicy-72c0e445d8907263c10de06acad3b377d76918e1.tar.bz2
android_device_qcom_sepolicy-72c0e445d8907263c10de06acad3b377d76918e1.zip
Merge tag 'LA.UM.6.4.r1-05700-8x98.0' of https://source.codeaurora.org/quic/la/device/qcom/sepolicy into HEAD
"LA.UM.6.4.r1-05700-8x98.0" Change-Id: I03ae219ba55ca0e850890cb52c9c1b58521020c5
Diffstat (limited to 'msm8996')
-rw-r--r--msm8996/update_engine_common.te40
1 files changed, 40 insertions, 0 deletions
diff --git a/msm8996/update_engine_common.te b/msm8996/update_engine_common.te
new file mode 100644
index 00000000..f54049f8
--- /dev/null
+++ b/msm8996/update_engine_common.te
@@ -0,0 +1,40 @@
+# 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 update_engine and update_engine_sideload (recovery) read/write on the
+# device-specific partitions it should update.
+allow update_engine_common {
+ custom_ab_block_device
+ xbl_block_device
+ ssd_device
+ modem_block_device
+ root_block_device
+ system_block_device
+ boot_block_device
+ mdtp_device
+}:blk_file rw_file_perms;
+