disallow running with sudo
unless you use the --i-am-really-stupid flag
This commit is contained in:
parent
36be9c4a11
commit
146b189d54
3 changed files with 33 additions and 0 deletions
5
src/init/initHelpers.cpp
Normal file
5
src/init/initHelpers.cpp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include "initHelpers.hpp"
|
||||
|
||||
bool Init::isSudo() {
|
||||
return getuid() != geteuid() || !geteuid();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue