On Tue, Dec 21, 2004 at 10:44:15AM -0300, Jorge Arellano Cid wrote:
On Wed, Dec 01, 2004 at 06:35:33AM +0000, Jeremy Henty wrote:
Well, I'd vote for 077. World-writable files give me the willies.
Just changed dpid's umask to 0077.
Cheers!
As Dillo is not designed to share its internal files among users, this seems to be the right setting.
Agreed.
Does anyone know better about umask's effects in depth?
W. Richard Stevens, for one, so I followed up every reference to umask() in "Advanced Programming in the UNIX(R) Environment". The only effect mentioned is that it modifies the file permissions mask passed to open() or creat(). The book also recommends umask(0) for daemons, but since we don't want to allow other processes to see dillo's internals I would still say umask(0077) is right for dpid. Cheers, Jeremy