mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-13 12:58:20 +03:00
nspawn: ignore --suppress-sync=yes when seccomp is disabled
Follow-up for 4a4654e0241fbeabecb8587fd3520b6b39264b9c. Fixes #21090.
This commit is contained in:
parent
dbf1aca619
commit
20e458ae3c
@ -3405,9 +3405,13 @@ static int inner_child(
|
||||
}
|
||||
|
||||
if (arg_suppress_sync) {
|
||||
#if HAVE_SECCOMP
|
||||
r = seccomp_suppress_sync();
|
||||
if (r < 0)
|
||||
log_debug_errno(r, "Failed to install sync() suppression seccomp filter, ignoring: %m");
|
||||
#else
|
||||
log_debug("systemd is built without SECCOMP support. Ignoring --suppress-sync= command line option and SuppressSync= setting.")
|
||||
#endif
|
||||
}
|
||||
|
||||
#if HAVE_SELINUX
|
||||
|
Loading…
x
Reference in New Issue
Block a user