]> git.ipfire.org Git - thirdparty/lxc.git/commit
commands: fix check for seccomp notify support
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 25 Dec 2020 16:54:14 +0000 (13:54 -0300)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Sat, 16 Jan 2021 16:58:22 +0000 (13:58 -0300)
commita342b11fedb3010630de4909ca707ebdc0862060
tree0753009b081dd2da2e0674cffec3c7e6b0931fe3
parent092529eaef5d72af8b5c8865e6f4fbecb834b23c
commands: fix check for seccomp notify support

Use HAVE_SECCOMP_NOTIFY instead of HAVE_DECL_SECCOMP_NOTIFY_FD.
Currently the latter will be true if the declaration is found by
configure, even if 'configure --disable-seccomp' is used.

HAVE_SECCOMP_NOTIFY is defined in lxcseccomp.h if both HAVE_SECCOMP and
HAVE_DECL_SECCOMP_NOTIFY_FD are true, which is the correct behavior.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
src/lxc/commands.c