seccomp: s/seccomp_notif_get_fd/seccomp_notify_fd/g

Align with upstream libseccomp.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2019-06-11 23:27:33 +02:00
parent 02ca9d758e
commit da9c8317e8
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ AM_COND_IF([ENABLE_CAP],
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $SECCOMP_CFLAGS"
AC_CHECK_TYPES([scmp_filter_ctx], [], [], [[#include <seccomp.h>]])
AC_CHECK_DECLS([seccomp_notif_get_fd], [], [], [[#include <seccomp.h>]])
AC_CHECK_DECLS([seccomp_notify_fd], [], [], [[#include <seccomp.h>]])
AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [], [], [[#include <seccomp.h>]])
CFLAGS="$OLD_CFLAGS"

View File

@ -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;