Ping: [PATCH] make pidfile permissions 644, not 666

Ian Wienand ianw at vmware.com
Mon Aug 29 17:42:12 UTC 2011


On 08/27/2011 09:04 PM, Denys Vlasenko wrote:
> On Thursday 25 August 2011 00:29, Ian Wienand wrote:
>> ping on this ... I still think there's no valid reason to create a
>> pidfile with 666 permissions.
>
> Can't use set proper umask?

I can, but I believe the standard way for a daemon to run is to set
its umask to zero & explicitly set file permissions internally -- so
it doesn't rely on an external umask and possibly end up writing
world-writable pid files, for example.

Someone else said they rely on the behaviour and it is not a huge
issue for me.

-i


More information about the busybox mailing list