mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
bail out if use-seccomp is set to true but there is no seccomp capability
This commit is contained in:
@@ -543,6 +543,13 @@ unsigned force_cert_auth;
|
||||
}
|
||||
|
||||
READ_TF("use-seccomp", config->seccomp, 0);
|
||||
#ifndef HAVE_LIBSECCOMP
|
||||
if (config->seccomp != 0) {
|
||||
fprintf(stderr, "error: 'use-seccomp' is set to true, but not compiled with seccomp support\n");
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
|
||||
READ_TF("predictable-ips", config->predictable_ips, 1);
|
||||
READ_TF("use-utmp", config->use_utmp, 1);
|
||||
READ_TF("use-dbus", config->use_dbus, 0);
|
||||
|
||||
Reference in New Issue
Block a user