diff --git a/configure.ac b/configure.ac index 4686872ac..4e10d4f9f 100644 --- a/configure.ac +++ b/configure.ac @@ -363,7 +363,7 @@ AM_COND_IF([ENABLE_CAP], OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $SECCOMP_CFLAGS" AC_CHECK_TYPES([scmp_filter_ctx], [], [], [[#include ]]) -AC_CHECK_DECLS([seccomp_notif_get_fd], [], [], [[#include ]]) +AC_CHECK_DECLS([seccomp_notify_fd], [], [], [[#include ]]) AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [], [], [[#include ]]) CFLAGS="$OLD_CFLAGS" diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index 002e15654..b8ada6168 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -1258,7 +1258,7 @@ int lxc_seccomp_load(struct lxc_conf *conf) #if HAVE_DECL_SECCOMP_NOTIF_GET_FD if (conf->seccomp.notifier.wants_supervision) { - ret = seccomp_notif_get_fd(conf->seccomp.seccomp_ctx); + ret = seccomp_notify_fd(conf->seccomp.seccomp_ctx); if (ret < 0) { errno = -ret; return -1;