Merge pull request #4538 from fbuihuu/confirm-spawn-fixes
Confirm spawn fixes/enhancements
This commit is contained in:
+9
-8
@@ -225,16 +225,15 @@ static inline bool exec_context_restrict_namespaces_set(const ExecContext *c) {
|
||||
}
|
||||
|
||||
typedef enum ExecFlags {
|
||||
EXEC_CONFIRM_SPAWN = 1U << 0,
|
||||
EXEC_APPLY_PERMISSIONS = 1U << 1,
|
||||
EXEC_APPLY_CHROOT = 1U << 2,
|
||||
EXEC_APPLY_TTY_STDIN = 1U << 3,
|
||||
EXEC_APPLY_PERMISSIONS = 1U << 0,
|
||||
EXEC_APPLY_CHROOT = 1U << 1,
|
||||
EXEC_APPLY_TTY_STDIN = 1U << 2,
|
||||
|
||||
/* The following are not used by execute.c, but by consumers internally */
|
||||
EXEC_PASS_FDS = 1U << 4,
|
||||
EXEC_IS_CONTROL = 1U << 5,
|
||||
EXEC_SETENV_RESULT = 1U << 6,
|
||||
EXEC_SET_WATCHDOG = 1U << 7,
|
||||
EXEC_PASS_FDS = 1U << 3,
|
||||
EXEC_IS_CONTROL = 1U << 4,
|
||||
EXEC_SETENV_RESULT = 1U << 5,
|
||||
EXEC_SET_WATCHDOG = 1U << 6,
|
||||
} ExecFlags;
|
||||
|
||||
struct ExecParameters {
|
||||
@@ -254,6 +253,8 @@ struct ExecParameters {
|
||||
|
||||
const char *runtime_prefix;
|
||||
|
||||
const char *confirm_spawn;
|
||||
|
||||
usec_t watchdog_usec;
|
||||
|
||||
int *idle_pipe;
|
||||
|
||||
Reference in New Issue
Block a user