Merge "Add support for"
This commit is contained in:
commit
b291856fc9
8 changed files with 58 additions and 2 deletions
1
generic/vendor/common/device.te
vendored
1
generic/vendor/common/device.te
vendored
|
@ -59,3 +59,4 @@ type ssr_device, dev_type;
|
|||
type synx_device, dev_type;
|
||||
type wlan_device, dev_type;
|
||||
type xbl_block_device, dev_type;
|
||||
type uefi_block_device, dev_type;
|
||||
|
|
39
generic/vendor/common/fastbootd.te
vendored
Normal file
39
generic/vendor/common/fastbootd.te
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Copyright (c) 2019, 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 fastbootd
|
||||
recovery_only(`
|
||||
allow fastbootd {
|
||||
custom_ab_block_device
|
||||
recovery_block_device
|
||||
xbl_block_device
|
||||
uefi_block_device
|
||||
ssd_block_device
|
||||
modem_block_device
|
||||
mdtp_device
|
||||
}:blk_file { rw_file_perms };
|
||||
')
|
1
generic/vendor/common/hal_bootctl.te
vendored
1
generic/vendor/common/hal_bootctl.te
vendored
|
@ -42,6 +42,7 @@ allow hal_bootctl xbl_block_device:blk_file getattr;
|
|||
allow hal_bootctl modem_block_device:blk_file getattr;
|
||||
allow hal_bootctl system_block_device:blk_file getattr;
|
||||
allow hal_bootctl custom_ab_block_device:blk_file getattr;
|
||||
allow hal_bootctl recovery_block_device:blk_file getattr;
|
||||
allow hal_bootctl mdtp_device:blk_file getattr;
|
||||
allow hal_bootctl_server misc_block_device:blk_file rw_file_perms;
|
||||
|
||||
|
|
5
generic/vendor/kona/file_contexts
vendored
5
generic/vendor/kona/file_contexts
vendored
|
@ -82,6 +82,11 @@
|
|||
/dev/block/platform/soc/1d84000.ufshc/by-name/xbl_config_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/imagefv_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/multiimgoem_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/uefisecapp_[ab] u:object_r:uefi_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/recovery_[ab] u:object_r:recovery_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_system_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_product_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/super u:object_r:super_block_device:s0
|
||||
|
||||
# Block device holding the GPT, where the A/B attributes are stored.
|
||||
/dev/block/platform/soc/1d84000.ufshc/sd[ade] u:object_r:gpt_block_device:s0
|
||||
|
|
2
generic/vendor/msmnile/device.te
vendored
2
generic/vendor/msmnile/device.te
vendored
|
@ -25,8 +25,6 @@
|
|||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#type sysfs_qdss_dev;
|
||||
type uefi_block_device, dev_type;
|
||||
#logdump partition
|
||||
type logdump_partition, dev_type;
|
||||
type mba_debug_dev, dev_type;
|
||||
|
|
4
generic/vendor/msmnile/file_contexts
vendored
4
generic/vendor/msmnile/file_contexts
vendored
|
@ -53,6 +53,7 @@
|
|||
/dev/block/platform/soc/1d84000.ufshc/by-name/mdm1m9kefs2 u:object_r:efs_boot_dev:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/mdm1m9kefs3 u:object_r:efs_boot_dev:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/mdmddr u:object_r:efs_boot_dev:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/super u:object_r:super_block_device:s0
|
||||
|
||||
#rawdump partition
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/rawdump u:object_r:rawdump_block_device:s0
|
||||
|
@ -81,6 +82,9 @@
|
|||
/dev/block/platform/soc/1d84000.ufshc/by-name/system_[ab] u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/tz_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/recovery_[ab] u:object_r:recovery_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_system_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_product_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vendor_[ab] u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/product_[ab] u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/odm_[ab] u:object_r:system_block_device:s0
|
||||
|
|
|
@ -33,5 +33,8 @@ allow update_engine_common {
|
|||
uefi_block_device
|
||||
ssd_block_device
|
||||
modem_block_device
|
||||
recovery_block_device
|
||||
}:blk_file rw_file_perms;
|
||||
|
||||
allow update_engine_common tmpfs:lnk_file r_file_perms;
|
||||
|
||||
|
|
5
generic/vendor/sdm845/file_contexts
vendored
5
generic/vendor/sdm845/file_contexts
vendored
|
@ -46,6 +46,7 @@
|
|||
/dev/block/platform/soc/1d84000\.ufshc/by-name/trusty_[ab] u:object_r:ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000\.ufshc/by-name/tz_[ab] u:object_r:ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000\.ufshc/by-name/vbmeta_[ab] u:object_r:ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000\.ufshc/by-name/uefisecapp_[ab] u:object_r:uefi_block_device:s0
|
||||
|
||||
/dev/block/platform/soc/1d84000\.ufshc/by-name/boot_[ab] u:object_r:boot_block_device:s0
|
||||
|
||||
|
@ -81,6 +82,10 @@
|
|||
/dev/block/platform/soc/1d84000.ufshc/by-name/aop_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/qupfw_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/ImageFv_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/recovery_[ab] u:object_r:recovery_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_system_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/vbmeta_product_[ab] u:object_r:custom_ab_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/by-name/super u:object_r:super_block_device:s0
|
||||
|
||||
/dev/block/platform/soc/1d84000.ufshc/sd[ade] u:object_r:gpt_block_device:s0
|
||||
/dev/block/platform/soc/1d84000.ufshc/sd[bc] u:object_r:xbl_block_device:s0
|
||||
|
|
Loading…
Reference in a new issue