[lxc-devel] [lxc/master] seccomp: s/SCMP_FLTATR_NEW_LISTENER/SECCOMP_FILTER_FLAG_NEW_LISTENER/g
brauner on Github
lxc-bot at linuxcontainers.org
Tue Jun 11 21:52:37 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 399 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190611/17175758/attachment.bin>
-------------- next part --------------
From 2e5bcac329b6bc4f9881abb3834b2cef88214d03 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Tue, 11 Jun 2019 23:51:34 +0200
Subject: [PATCH] seccomp:
s/SCMP_FLTATR_NEW_LISTENER/SECCOMP_FILTER_FLAG_NEW_LISTENER/g
Align with upstream libseccomp.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
src/lxc/seccomp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c
index 5edaa780c5..d49596fdf6 100644
--- a/src/lxc/seccomp.c
+++ b/src/lxc/seccomp.c
@@ -945,12 +945,12 @@ static int parse_config_v2(FILE *f, char *line, size_t *line_bufsz, struct lxc_c
if ((rule.action == SCMP_ACT_NOTIFY) &&
!conf->seccomp.notifier.wants_supervision) {
ret = seccomp_attr_set(conf->seccomp.seccomp_ctx,
- SCMP_FLTATR_NEW_LISTENER, 1);
+ SECCOMP_FILTER_FLAG_NEW_LISTENER, 1);
if (ret)
goto bad_rule;
conf->seccomp.notifier.wants_supervision = true;
- TRACE("Set SCMP_FLTATR_NEW_LISTENER attribute");
+ TRACE("Set SECCOMP_FILTER_FLAG_NEW_LISTENER attribute");
}
#endif
More information about the lxc-devel
mailing list