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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux