pulseaudio/src/daemon
Tanu Kaskinen 1a66715320 main: set umask to 077 instead of 022
It was reported that PulseAudio weakens the umask to 022 if it's
initially set to 077. That's not as big problem as it might seem,
but it's still a problem. The umask affects the permissions of the state
files, and those aren't readable by other users anyway in the per-user
mode, because PulseAudio puts them in directories that aren't
accessible to other users. In the system mode the state files will be
readable by everyone, though, even by those users that don't otherwise
have access to PulseAudio. The state files are slightly
privacy-sensitive, because they contain e.g. history of applications
that have used PulseAudio.

I can't think of any use cases where access to the state files by other
users would be necessary, either in the per-user mode or in the system
mode, so let's use umask 077. This doesn't prevent access to any
sockets in the system mode, because all directories that PulseAudio
creates in the system mode will have permissions 755 regardless of the
umask, and the sockets themselves always have permissions 777.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=102060
2017-09-05 13:46:27 +03:00
..
systemd/user launch: Remove the already implicit After=pulseaudio.socket 2016-09-10 17:14:30 +03:00
.gitignore Remove all references to the removed KDE files 2014-03-03 18:06:20 +02:00
caps.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
caps.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
cmdline.c core: Support memfd transport; bump protocol version 2016-04-27 18:37:08 +05:30
cmdline.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
cpulimit.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
cpulimit.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
daemon-conf.c sink, source: Add a mode to avoid resampling if possible 2017-01-30 13:54:43 +05:30
daemon-conf.h sink, source: Add a mode to avoid resampling if possible 2017-01-30 13:54:43 +05:30
daemon.conf.in sink, source: Add a mode to avoid resampling if possible 2017-01-30 13:54:43 +05:30
default.pa.in default.pa: remove X11 module examples 2016-02-09 13:04:49 +02:00
dumpmodules.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
dumpmodules.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
esdcompat.in update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ltdl-bind-now.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
ltdl-bind-now.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
main.c main: set umask to 077 instead of 022 2017-09-05 13:46:27 +03:00
Makefile build-sys: readd stub makefiles to subdirectories to make building with emacs easier 2012-05-15 14:17:58 +02:00
pulseaudio-system.conf update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
pulseaudio.desktop.in daemon: ensure pulseaudio early startup on kde 2014-03-03 18:06:20 +02:00
server-lookup.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
server-lookup.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
start-pulseaudio-x11.in update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
system.pa.in system.pa.in: load module-coreaudio-detect if HAVE_COREAUDIO. 2016-01-04 12:39:21 +05:30