Bill Stoddard wrote:

What is the purpose of the geteuid() call in run_fatal_exception_hook and when might it return 0?

geteuid() returns 0 when running with root privileges


the purpose of not running the hook as root is a nod to the possibility that the hook could be hijacked (dunno how since we'd have to be in the parent to be running with root privileges but still...) and figuring that it is safer to have some limit on how much damage could be done

feature-wise the limitation doesn't seem to be harmful, as I'm not aware of any meaningful number of 1.3 crashes in the parent

Reply via email to