summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-02-16 10:10:19 +0100
committerLennart Poettering <lennart@poettering.net>2023-02-16 11:48:18 +0100
commit6aa2c55522d7cac62ecfd5d5687a86a84f158d18 (patch)
tree1650f93762896e2bd52543d3f47c44b4336ec76d /src/core/main.c
parentbbb40c4e6f45dd0929c59e719310239b11edc040 (diff)
downloadsystemd-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.c3
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 },