[lxc-devel] [lxc/master] s390x: Fix seccomp handling of personalities
stgraber on Github
lxc-bot at linuxcontainers.org
Thu Oct 20 20:57:48 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 424 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161020/44d67767/attachment.bin>
-------------- next part --------------
From 2b097b7b0a2bdd64de887ff8c3582bfed60db27d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 20 Oct 2016 16:35:36 -0400
Subject: [PATCH] s390x: Fix seccomp handling of personalities
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
There are no personalities for s390x, so don't list itself as one.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
src/lxc/seccomp.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c
index ccffa9f..57c95b0 100644
--- a/src/lxc/seccomp.c
+++ b/src/lxc/seccomp.c
@@ -378,15 +378,6 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf)
if (!compat_ctx[0] || !compat_ctx[1])
goto bad;
#endif
-#ifdef SCMP_ARCH_S390X
- } else if (native_arch == lxc_seccomp_arch_s390x) {
- cur_rule_arch = lxc_seccomp_arch_all;
- compat_arch[0] = SCMP_ARCH_S390X;
- compat_ctx[0] = get_new_ctx(lxc_seccomp_arch_s390x,
- default_policy_action);
- if (!compat_ctx[0])
- goto bad;
-#endif
}
if (default_policy_action != SCMP_ACT_KILL) {
More information about the lxc-devel
mailing list