[pulseaudio-discuss] [PATCH] pipe-sink, pipe-source: fix file permissions

Georg Chini georg at chini.tk
Sat Jul 7 09:48:27 UTC 2018


On 04.07.2018 12:40, Tanu Kaskinen wrote:
> We recently changed the umask of the daemon from 022 to 077, which broke
> module-pipe-sink in the system mode, because nobody was allowed to read
> from the pipe.
>
> module-pipe-source in the system mode was probably always broken,
> because the old umask of 022 should prevent anyone from writing to the
> pipe.
>
> This patch uses chmod() after the file creation to set the permissions
> to 0666, which is what the fkfifo() call tried to set.
>
> Bug link: https://bugs.freedesktop.org/show_bug.cgi?id=107070
> ---
Should the permissions really be 666? Would not 660 be better,
so that there is at least some control who may access the pipe?


More information about the pulseaudio-discuss mailing list