core: warn if a generator is world-writable

... because that is obviously a security risk.
This commit is contained in:
Lukas Nykryn
2024-10-07 11:02:37 +09:00
committed by Yu Watanabe
parent db7903e4d4
commit da32cac8a0
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -4151,7 +4151,7 @@ static int manager_execute_generators(Manager *m, char **paths, bool remount_ro)
/* callbacks= */ NULL, /* callback_args= */ NULL,
(char**) argv,
ge,
EXEC_DIR_PARALLEL | EXEC_DIR_IGNORE_ERRORS | EXEC_DIR_SET_SYSTEMD_EXEC_PID);
EXEC_DIR_PARALLEL | EXEC_DIR_IGNORE_ERRORS | EXEC_DIR_SET_SYSTEMD_EXEC_PID | EXEC_DIR_WARN_WORLD_WRITABLE);
}
static int manager_run_generators(Manager *m) {