sepolicy: add device sepolicy rule for NNHAL-1.2v
Updated rules for legacy targets from generic targets Change-Id: I1128703a8303d5359c3a28329a7f3c3f091d9d44
This commit is contained in:
		
							
								
								
									
										7
									
								
								legacy/vendor/common/hal_neuralnetworks.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								legacy/vendor/common/hal_neuralnetworks.te
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
# Copyright (c) 2018, The Linux Foundation. All rights reserved.
 | 
			
		||||
# Copyright (c) 2018-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
 | 
			
		||||
@@ -33,10 +33,11 @@ init_daemon_domain(hal_neuralnetworks_default)
 | 
			
		||||
 | 
			
		||||
allow hal_neuralnetworks_default fwk_sensor_hwservice:hwservice_manager find;
 | 
			
		||||
allow hal_neuralnetworks_default qdsp_device:chr_file r_file_perms;
 | 
			
		||||
allow hal_neuralnetworks_default xdsp_device:chr_file r_file_perms;
 | 
			
		||||
allow hal_neuralnetworks_default ion_device:chr_file r_file_perms;
 | 
			
		||||
 | 
			
		||||
allow hal_neuralnetworks_default app_data_file:file { read getattr };
 | 
			
		||||
allow hal_neuralnetworks_default shell_data_file:file { read getattr };
 | 
			
		||||
allow hal_neuralnetworks_default app_data_file:file { read getattr map };
 | 
			
		||||
allow hal_neuralnetworks_default shell_data_file:file { read getattr map };
 | 
			
		||||
allow hal_neuralnetworks_default hal_neuralnetworks_data_file:dir create_dir_perms;
 | 
			
		||||
allow hal_neuralnetworks_default hal_neuralnetworks_data_file:{ file fifo_file } create_file_perms;
 | 
			
		||||
allow hal_neuralnetworks_default gpu_device:chr_file rw_file_perms;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user