Block Running As Root

This commit is contained in:
TheBrokenRail 2022-06-24 20:37:52 -04:00
parent 0e7a108a0a
commit 78e17d8c18
2 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit d3ede7b6847b66cf30b067214b2b4b126d4c729b
Subproject commit da6713cd096a40a4512f468b34c189017e73f987

View File

@ -129,6 +129,11 @@ static void run_zenity_and_set_env(const char *env_name, std::vector<std::string
// Launch
#define LIST_DIALOG_SIZE "400"
int main(int argc, char *argv[]) {
// Don't Run As Root
if (getuid() == 0 || geteuid() == 0) {
ERR("Don't Run As Root");
}
// Pre-Bootstrap
pre_bootstrap(argc, argv);