[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] Permit root-owned home directory

Georg Chini gitlab at gitlab.freedesktop.org
Mon Jan 20 11:37:17 UTC 2020



Georg Chini pushed to branch master at PulseAudio / pulseaudio


Commits:
97d0eda2 by Nick Moriarty at 2020-01-20T10:34:16+00: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.

- - - - -


1 changed file:

- src/pulsecore/core-util.c


Changes:

=====================================
src/pulsecore/core-util.c
=====================================
@@ -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
 



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/97d0eda2562af07b7514de075ddf62f9dd678e51

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/97d0eda2562af07b7514de075ddf62f9dd678e51
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20200120/112a8f40/attachment.htm>


More information about the pulseaudio-commits mailing list