mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Permit root-owned home directory
On certain types of filesystem (especially NFS appliances which support multiple operating systems), the user's home directory may report as being owned by root rather than the user, yet still permit the user to create and modify files normally (which will be owned by them). Our users have home directories hosted on a NetApp storage appliance which uses mixed-mode ACLs but where the home directory is set up with NTFS ACLs at the top level. This means they have the expected effective permissions, but the ownership reports as root. This could also be the case if the filesystem were using NFS4 ACLs or similar.
This commit is contained in:
		
							parent
							
								
									fe436f9099
								
							
						
					
					
						commit
						97d0eda256
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1448,7 +1448,7 @@ static int check_ours(const char *p) {
 | 
			
		|||
        return -errno;
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_GETUID
 | 
			
		||||
    if (st.st_uid != getuid())
 | 
			
		||||
    if (st.st_uid != getuid() && st.st_uid != 0)
 | 
			
		||||
        return -EACCES;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue