diff options
author | Samir Mehta <samirn@codeaurora.org> | 2015-07-30 12:30:59 +0530 |
---|---|---|
committer | Samir Mehta <samirn@codeaurora.org> | 2015-07-30 14:40:36 +0530 |
commit | 09f9e1210dae0b82e190dea697bbc06e83e83f8c (patch) | |
tree | 896d2a7187ec2f0d80f1f5e26f7e505eaa365abd | |
parent | c7bf4818623e4512054649209cad2c7df3fc9953 (diff) | |
download | android_device_qcom_sepolicy-09f9e1210dae0b82e190dea697bbc06e83e83f8c.tar.gz android_device_qcom_sepolicy-09f9e1210dae0b82e190dea697bbc06e83e83f8c.tar.bz2 android_device_qcom_sepolicy-09f9e1210dae0b82e190dea697bbc06e83e83f8c.zip |
sepolicy : Initial changes for apq8084
1. correct modem block path in the file_context for apq8084.
modemtst1,modemtst2,fsg,fsc will fail to mount.
2. Compilation fixes for qca file type and context.
Change-Id: I5c22bf0a03efbd122ffe67527c86ac65bb52a2a5
-rw-r--r-- | apq8084/file.te | 31 | ||||
-rw-r--r-- | apq8084/file_contexts | 42 |
2 files changed, 73 insertions, 0 deletions
diff --git a/apq8084/file.te b/apq8084/file.te new file mode 100644 index 00000000..ea0f63b8 --- /dev/null +++ b/apq8084/file.te @@ -0,0 +1,31 @@ +# Copyright (c) 2015, 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. + +# qca data file for apq8084 +type qca1530_data_file, file_type, data_file_type; +type sysfs_qca1530, file_type; +type qca1530_prop, file_type; diff --git a/apq8084/file_contexts b/apq8084/file_contexts new file mode 100644 index 00000000..03195965 --- /dev/null +++ b/apq8084/file_contexts @@ -0,0 +1,42 @@ +# Copyright (c) 2015, 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. + +################################### +# Primary storage device nodes +# +/dev/block/platform/msm_sdcc\.1/by-name/fsg u:object_r:modem_efs_partition_device:s0 +/dev/block/platform/msm_sdcc\.1/by-name/fsc u:object_r:modem_efs_partition_device:s0 +/dev/block/platform/msm_sdcc\.1/by-name/modemst1 u:object_r:modem_efs_partition_device:s0 +/dev/block/platform/msm_sdcc\.1/by-name/modemst2 u:object_r:modem_efs_partition_device:s0 +/dev/block/platform/msm_sdcc\.1/by-name/ssd u:object_r:ssd_device:s0 +/dev/block/platform/msm_sdcc\.1/by-name/misc u:object_r:misc_partition:s0 +/dev/block/platform/msm_sdcc\.1/by-name/userdata u:object_r:userdata_block_device:s0 +/dev/block/mmcblk0 u:object_r:mmc_block_device:s0 +/dev/block/mmcblk0rpmb u:object_r:rpmb_device:s0 + +# qca data file for apq8084 target +/data/misc/location/qca1530(/.*)? u:object_r:qca1530_data_file:s0 |