Merge "sepolicy: add policy for qseecom hal" into sepolicy.lnx.6.0
This commit is contained in:
		
				
					committed by
					
						
						Gerrit - the friendly Code Review server
					
				
			
			
				
	
			
			
			
					commit
					8f46b09fe4
				
			
							
								
								
									
										4
									
								
								qva/vendor/common/attributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								qva/vendor/common/attributes
									
									
									
									
										vendored
									
									
								
							@@ -49,6 +49,10 @@ attribute vendor_hal_pasrmanager;
 | 
			
		||||
attribute vendor_hal_pasrmanager_client;
 | 
			
		||||
attribute vendor_hal_pasrmanager_server;
 | 
			
		||||
 | 
			
		||||
attribute vendor_hal_qseecom;
 | 
			
		||||
attribute vendor_hal_qseecom_client;
 | 
			
		||||
attribute vendor_hal_qseecom_server;
 | 
			
		||||
 | 
			
		||||
attribute vendor_hal_qteeconnector;
 | 
			
		||||
attribute vendor_hal_qteeconnector_client;
 | 
			
		||||
attribute vendor_hal_qteeconnector_server;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								qva/vendor/common/file_contexts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								qva/vendor/common/file_contexts
									
									
									
									
										vendored
									
									
								
							@@ -72,6 +72,7 @@
 | 
			
		||||
/vendor/bin/hw/vendor\.qti\.hardware\.alarm@1\.0-service                           u:object_r:vendor_hal_alarm_qti_default_exec:s0
 | 
			
		||||
/vendor/bin/hw/vendor\.qti\.hardware\.iop@2\.0-service                             u:object_r:vendor_hal_iop_default_exec:s0
 | 
			
		||||
/vendor/bin/hw/vendor\.qti\.hardware\.qteeconnector@1\.0-service                   u:object_r:vendor_hal_qteeconnector_qti_exec:s0
 | 
			
		||||
/vendor/bin/hw/vendor\.qti\.hardware\.qseecom@1\.0-service                         u:object_r:vendor_hal_qseecom_default_exec:s0
 | 
			
		||||
/vendor/bin/hw/vendor\.qti\.hardware\.scve\.objecttracker@1\.0-service             u:object_r:vendor_scve_exec:s0
 | 
			
		||||
/(vendor|system/vendor)/bin/hw/vendor\.qti\.hardware\.scve\.panorama@1\.0-service  u:object_r:vendor_scve_exec:s0
 | 
			
		||||
/vendor/bin/hw/vendor\.qti\.hardware\.sensorscalibrate@1\.0-service                u:object_r:vendor_hal_sensorscalibrate_qti_default_exec:s0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										52
									
								
								qva/vendor/common/hal_qseecom.te
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								qva/vendor/common/hal_qseecom.te
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
			
		||||
# Copyright (c) 2019-2020, 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.
 | 
			
		||||
 | 
			
		||||
#define the domain
 | 
			
		||||
type vendor_hal_qseecom_default, domain;
 | 
			
		||||
hal_server_domain(vendor_hal_qseecom_default, vendor_hal_qseecom)
 | 
			
		||||
type vendor_hal_qseecom_default_exec, exec_type, file_type, vendor_file_type;
 | 
			
		||||
 | 
			
		||||
init_daemon_domain(vendor_hal_qseecom_default)
 | 
			
		||||
 | 
			
		||||
#Allow hal_qseecom client domain apps to find hwservice
 | 
			
		||||
binder_call(vendor_hal_qseecom_client, vendor_hal_qseecom_server)
 | 
			
		||||
binder_call(vendor_hal_qseecom_server, vendor_hal_qseecom_client)
 | 
			
		||||
 | 
			
		||||
#allow the service to be added to hwservice list
 | 
			
		||||
hal_attribute_hwservice(vendor_hal_qseecom, vendor_hal_qseecom_hwservice)
 | 
			
		||||
 | 
			
		||||
#allow access to hal_allocator
 | 
			
		||||
hal_client_domain(vendor_hal_qseecom_default, hal_allocator)
 | 
			
		||||
 | 
			
		||||
#allow access to ion device
 | 
			
		||||
allow vendor_hal_qseecom_default ion_device:chr_file rw_file_perms;
 | 
			
		||||
 | 
			
		||||
#Allow access to firmware
 | 
			
		||||
r_dir_file(vendor_hal_qseecom_default, firmware_file);
 | 
			
		||||
 | 
			
		||||
#Allow access to tee device
 | 
			
		||||
allow vendor_hal_qseecom_default tee_device:chr_file rw_file_perms;
 | 
			
		||||
							
								
								
									
										1
									
								
								qva/vendor/common/hwservice.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								qva/vendor/common/hwservice.te
									
									
									
									
										vendored
									
									
								
							@@ -53,3 +53,4 @@ type vendor_hal_secureprocessor_hwservice, hwservice_manager_type, protected_hws
 | 
			
		||||
type vendor_hal_qspmhal_hwservice, hwservice_manager_type;
 | 
			
		||||
type vendor_hal_bluetooth_dun_hwservice, hwservice_manager_type, protected_hwservice;
 | 
			
		||||
type vendor_hal_embmssl_hwservice, hwservice_manager_type, protected_hwservice;
 | 
			
		||||
type vendor_hal_qseecom_hwservice, hwservice_manager_type, protected_hwservice;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								qva/vendor/common/hwservice_contexts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								qva/vendor/common/hwservice_contexts
									
									
									
									
										vendored
									
									
								
							@@ -71,3 +71,4 @@ vendor.qti.qspmhal::IQspmhal                                 u:object_r:vendor_h
 | 
			
		||||
vendor.qti.hardware.secureprocessor.device::ISecureProcessor    u:object_r:vendor_hal_secureprocessor_hwservice:s0
 | 
			
		||||
vendor.qti.hardware.cryptfshw::ICryptfsHw                    u:object_r:hal_keymaster_hwservice:s0
 | 
			
		||||
vendor.qti.hardware.embmssl::IEmbms                          u:object_r:vendor_hal_embmssl_hwservice:s0
 | 
			
		||||
vendor.qti.hardware.qseecom::IQSEECom                        u:object_r:vendor_hal_qseecom_hwservice:s0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user