]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
s390x: Fix seccomp handling of personalities 1243/head
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 20 Oct 2016 20:35:36 +0000 (16:35 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 20 Oct 2016 20:54:31 +0000 (16:54 -0400)
There are no personalities for s390x, so don't list itself as one.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/seccomp.c

index ccffa9f8781c6dad0c7ea5655457cf815576e35a..57c95b0c67361f776fc64090f177d43dd852f18b 100644 (file)
@@ -377,15 +377,6 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf)
                                default_policy_action);
                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
        }