disallow running with sudo

unless you use the --i-am-really-stupid flag
This commit is contained in:
vaxerski 2022-05-19 19:28:15 +02:00
parent 36be9c4a11
commit 146b189d54
3 changed files with 33 additions and 0 deletions

5
src/init/initHelpers.cpp Normal file
View file

@ -0,0 +1,5 @@
#include "initHelpers.hpp"
bool Init::isSudo() {
return getuid() != geteuid() || !geteuid();
}