Resolve compilation issues while enabling full treble based on the change Iaf0d5662e2eb77b8e3651beaaf87b2e6094632bb Change-Id: I8053b8076de1843fd32c0eac264164d717678797
		
			
				
	
	
		
			30 lines
		
	
	
		
			828 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			828 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# Policy for usf daemons
 | 
						|
type usf, domain;
 | 
						|
type usf_exec, exec_type, vendor_file_type, file_type;
 | 
						|
 | 
						|
# Started by init
 | 
						|
init_daemon_domain(usf)
 | 
						|
net_domain(usf)
 | 
						|
 | 
						|
# Ultrasound device
 | 
						|
allow usf usf_device:chr_file rw_file_perms;
 | 
						|
 | 
						|
# Audio
 | 
						|
allow usf audio_data_file:sock_file write;
 | 
						|
#allow usf mediaserver:unix_stream_socket connectto;
 | 
						|
allow usf audio_data_file:dir r_dir_perms;
 | 
						|
allow usf audio_device:chr_file rw_file_perms;
 | 
						|
allow usf proc_audiod:file r_file_perms;
 | 
						|
allow usf audio_device:dir r_dir_perms;
 | 
						|
 | 
						|
# Data files and persist storage
 | 
						|
allow usf usf_data_file:dir rw_dir_perms;
 | 
						|
allow usf usf_data_file:{ file sock_file fifo_file } create_file_perms;
 | 
						|
allow usf usf_data_file:lnk_file r_file_perms;
 | 
						|
r_dir_file(usf, persist_file)
 | 
						|
r_dir_file(usf, persist_usf_file)
 | 
						|
 | 
						|
# Properties
 | 
						|
set_prop(usf, ctl_default_prop)
 | 
						|
set_prop(usf, usf_prop)
 |