Merge "Add sepolicy for super image"
This commit is contained in:
		
				
					committed by
					
						
						Gerrit - the friendly Code Review server
					
				
			
			
				
	
			
			
			
					commit
					637902d73b
				
			
							
								
								
									
										2
									
								
								qva/vendor/lito/file_contexts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								qva/vendor/lito/file_contexts
									
									
									
									
										vendored
									
									
								
							@@ -83,6 +83,7 @@
 | 
			
		||||
/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/uefisecapp_[ab]   u:object_r:uefi_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
 | 
			
		||||
@@ -146,6 +147,7 @@
 | 
			
		||||
/dev/block/platform/soc/7c4000.sdhci/by-name/dip                                u:object_r:dip_device:s0
 | 
			
		||||
/dev/block/platform/soc/7c4000.sdhci/by-name/storsec                            u:object_r:boot_block_device:s0
 | 
			
		||||
/dev/block/platform/soc/7c4000.sdhci/by-name/persist                            u:object_r:persist_block_device:s0
 | 
			
		||||
/dev/block/platform/soc/7c4000.sdhci/by-name/super                              u:object_r:super_block_device:s0
 | 
			
		||||
 | 
			
		||||
#rawdump partition
 | 
			
		||||
/dev/block/platform/soc/7c4000.sdhci/by-name/rawdump                            u:object_r:rawdump_block_device:s0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										42
									
								
								qva/vendor/lito/init.te
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								qva/vendor/lito/init.te
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
# 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 init to read/write/ioctl for mounting overlayfs
 | 
			
		||||
# with kernel 4.19.  At the point of overlayfs mount
 | 
			
		||||
# SELinux is initialized but labels tmpfs has not yet
 | 
			
		||||
# been relabeled.
 | 
			
		||||
#
 | 
			
		||||
# This is only used for userdebug/eng in adb remount
 | 
			
		||||
# scenario
 | 
			
		||||
#
 | 
			
		||||
# Temporary change
 | 
			
		||||
userdebug_or_eng(`
 | 
			
		||||
  allow init tmpfs:blk_file { ioctl read write open getattr };
 | 
			
		||||
')
 | 
			
		||||
 | 
			
		||||
allow init firmware_file:filesystem getattr;
 | 
			
		||||
allow init bt_firmware_file:filesystem getattr;
 | 
			
		||||
		Reference in New Issue
	
	Block a user