mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00

The reason for setting umask in a daemon is to get a defined umask value instead of whatever the calling user had configured. A umask of zero is dangerous, however, because it can easily cause world-readable and world-writeable files when oblivious code is involved that specified 0777 during open() calls, wanting to grant the user full control of the resulting file mode. Currently the daemon shouldn't be creating any new files so this is not a matter. This could change in the future, however.