wfd: Allow wfd processes to read video properties
With separation of video properties into system/vendor buckets, WFD needs to amend the rules accordingly. Change-Id: I5570ac3045b5f6c11afe9765192d7a2bc4bb5e1f
This commit is contained in:
		
				
					committed by
					
						
						Gerrit - the friendly Code Review server
					
				
			
			
				
	
			
			
			
						parent
						
							a2c91d7ca0
						
					
				
				
					commit
					cf2a5ffa10
				
			@@ -56,6 +56,7 @@ persist.vendor.media.hls.                 u:object_r:mm_video_prop:s0
 | 
			
		||||
persist.vendor.sys.media.rtp-ports        u:object_r:mm_video_prop:s0
 | 
			
		||||
vendor.encoder.video.profile              u:object_r:mm_video_prop:s0
 | 
			
		||||
vendor.sys.media.target.version           u:object_r:vendor_sys_video_prop:s0
 | 
			
		||||
vendor.sys.video.disable.ubwc             u:object_r:vendor_sys_video_prop:s0
 | 
			
		||||
 | 
			
		||||
#Wifi Display
 | 
			
		||||
vendor.wfdservice                         u:object_r:wfd_service_prop:s0
 | 
			
		||||
 
 | 
			
		||||
@@ -60,3 +60,6 @@ userdebug_or_eng(`
 | 
			
		||||
    allow system_app system_data_file:file r_file_perms;
 | 
			
		||||
')
 | 
			
		||||
binder_call(system_app, wfdservice)
 | 
			
		||||
 | 
			
		||||
# allow access to read video SKU property for WFD sink
 | 
			
		||||
get_prop(system_app, vendor_sys_video_prop)
 | 
			
		||||
 
 | 
			
		||||
@@ -66,3 +66,6 @@ hal_client_domain(wfdservice, hal_graphics_composer);
 | 
			
		||||
 | 
			
		||||
#Allow ion device access
 | 
			
		||||
allow wfdservice ion_device:chr_file r_file_perms;
 | 
			
		||||
 | 
			
		||||
#Allow source to access video UBWC property(for display config)
 | 
			
		||||
get_prop(wfdservice, vendor_sys_video_prop)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								qva/vendor/common/wifidisplayhalservice.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								qva/vendor/common/wifidisplayhalservice.te
									
									
									
									
										vendored
									
									
								
							@@ -101,3 +101,6 @@ userdebug_or_eng(`
 | 
			
		||||
#Allow to access logmask file in /data/vendor
 | 
			
		||||
  allow wifidisplayhalservice_qti vendor_data_file:file r_file_perms;
 | 
			
		||||
')
 | 
			
		||||
 | 
			
		||||
#Allow source to access video SKU and UBWC property(for encoder config)
 | 
			
		||||
get_prop(wifidisplayhalservice_qti, vendor_video_prop)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user