[pulseaudio-tickets] [Bug 102060] New: Security: PulseAudio server weakens the umask

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 6 18:43:23 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102060

            Bug ID: 102060
           Summary: Security: PulseAudio server weakens the umask
           Product: PulseAudio
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: daemon
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: klaus.kusche at computerix.info
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

We have a strict umask 077 policy here, i.e. all files created under /home
must have 00 permissions for group and other.

However, in spite of its initial umask being 077, the pulseaudio daemon 
creates files with permissions 644 in $HOME/.config/pulse.

A quick look into the source found a umask(0022); in src/daemon/main.c .

It may create files with more restrictive permissions than the umask says
(e.g. with 644 if the umask is 000), but it must not ignore the initial umask
or set its umask to something weaker than the initial umask,
and it must not create files with less restricive permissions than the umask!

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20170806/0a22bb54/attachment.html>


More information about the pulseaudio-bugs mailing list