mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 12:06:12 +00:00
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:
parent
02ca9d758e
commit
da9c8317e8
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user