just to illustrate why creating a file and then chmod'ing it is wrong.
I by accident start a script with my normal user permissions which contains
this:
file = inotifywait -e create /path/to/wakup/tmpdir | grep CREATE | awk '{$3}'
echo "... do-bad-stuff" >> file
this can now win the race condition and write arbitrary data to the file before
wakup chmod's the file to be only root rightable.
now the script gained root access while it before only had normal user access.
better create the file with the correct permissions in the first place,
or truncate the file when root writes to it.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/909189
Title:
Request for new upstream version 1.2 upgrade.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wakeup/+bug/909189/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs