]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
seccomp: s/seccomp_notif_get_fd/seccomp_notify_fd/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 11 Jun 2019 21:27:33 +0000 (23:27 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 11 Jun 2019 21:27:33 +0000 (23:27 +0200)
Align with upstream libseccomp.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
configure.ac
src/lxc/seccomp.c

index 4686872ac7bd916fb336be46d904fec26ac349b2..4e10d4f9f1a2c75033e03d3f7d11680e38729143 100644 (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"
 
index 002e156548780eac4984c88de09b914f47cdc73f..b8ada616847f5dfab84093fb4657844000a6caee 100644 (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;