OoO En  ce début de soirée du  mardi 10 mai 2011,  vers 21:16, Alexander
Wirt <formo...@formorer.de> disait :

>> > Readwrite permissions to the pidfile of a daemon is a really bad idea. a
>> umask(0) is a classic way to daemonize a processus. See:
>> http://www.unixguide.net/unix/programming/1.7.shtml
> Yeah, but in days of defensive programming you normally prevent such things. I
> haven't checked other files, but everything that uses fopen creates files
> with 666. We should be permissive by default. 

I honestly don't know what is  the drawback of using umask(022). You may
break some user  scripts launched by keepalived that  could write a file
(as  root)  which was  then  modified by  a  non-root  process. This  is
difficult to imagine. :)
-- 
panic("Aarggh: attempting to free lock with active wait queue - shoot Andy");
        2.0.38 /usr/src/linux/fs/locks.c

Attachment: pgpXB8YxwjY3I.pgp
Description: PGP signature

Reply via email to