diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-02-16 10:10:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-02-16 11:48:18 +0100 |
commit | 6aa2c55522d7cac62ecfd5d5687a86a84f158d18 (patch) | |
tree | 1650f93762896e2bd52543d3f47c44b4336ec76d /src/core/main.c | |
parent | bbb40c4e6f45dd0929c59e719310239b11edc040 (diff) | |
download | systemd-6aa2c55522d7cac62ecfd5d5687a86a84f158d18.tar.gz |
pid1: generate compat warning for SystemCallArchitectures= if seccomp is off
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c index 867f3c7adc..c0b8126d96 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -645,6 +645,9 @@ static int parse_config_file(void) { { "Manager", "NoNewPrivileges", config_parse_bool, 0, &arg_no_new_privs }, #if HAVE_SECCOMP { "Manager", "SystemCallArchitectures", config_parse_syscall_archs, 0, &arg_syscall_archs }, +#else + { "Manager", "SystemCallArchitectures", config_parse_warn_compat, DISABLED_CONFIGURATION, NULL }, + #endif { "Manager", "TimerSlackNSec", config_parse_nsec, 0, &arg_timer_slack_nsec }, { "Manager", "DefaultTimerAccuracySec", config_parse_sec, 0, &arg_default_timer_accuracy_usec }, |