edneville/please

Checking the config file for validity should not require setuid

cole-h opened this issue · 4 comments

If the file is readable by our user, we should be able to run please --check /etc/please.ini, without needing to have please setuid at that point.

This is especially useful in NixOS, in order to allow us to validate the please.ini file at build time, instead of the user finding out they broke something on accident at run time.

Yep, that's exactly what I was attempting. I agree with "dropping privs as early as possible", but thank you for seeing this as a slight exception to that. That patch works perfectly, thank you very much!

Thank you for confirming, it's merged and will be in the next release.

Thank you for the quick fix and quick responses, I truly appreciate it!