core: warn if a generator is world-writable
... because that is obviously a security risk.
This commit is contained in:
committed by
Yu Watanabe
parent
db7903e4d4
commit
da32cac8a0
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user