mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	* Add new "auth-group=" parameter to protocol-native-unix
* Rename "public=" argument  of protocol-{esound,native} to "auth-anonymous"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@601 fefdeb5f-60dc-0310-8127-8f9354f1896f
			
			
This commit is contained in:
		
							parent
							
								
									25bcc106d0
								
							
						
					
					
						commit
						4358977415
					
				
					 6 changed files with 86 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -160,7 +160,7 @@ int main(int argc, char *argv[]) {
 | 
			
		|||
#ifdef HAVE_GETUID
 | 
			
		||||
    suid_root = getuid() != 0 && geteuid() == 0;
 | 
			
		||||
    
 | 
			
		||||
    if (suid_root && (pa_uid_in_group("realtime", &gid) <= 0 || gid >= 1000)) {
 | 
			
		||||
    if (suid_root && (pa_own_uid_in_group("realtime", &gid) <= 0 || gid >= 1000)) {
 | 
			
		||||
        pa_log_warn(__FILE__": WARNING: called SUID root, but not in group 'realtime'.");
 | 
			
		||||
        pa_drop_root();
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue