lxc_seccomp_arch_mipsel64,
lxc_seccomp_arch_mipsel64n32,
lxc_seccomp_arch_s390x,
+ lxc_seccomp_arch_s390,
lxc_seccomp_arch_unknown = 999,
};
return MIPS_ARCH_O32;
else if (strncmp(uts.machine, "s390x", 5) == 0)
return lxc_seccomp_arch_s390x;
-
+ else if (strncmp(uts.machine, "s390", 4) == 0)
+ return lxc_seccomp_arch_s390;
return lxc_seccomp_arch_unknown;
}
case lxc_seccomp_arch_s390x:
arch = SCMP_ARCH_S390X;
break;
+#endif
+#ifdef SCMP_ARCH_S390
+ case lxc_seccomp_arch_s390:
+ arch = SCMP_ARCH_S390;
+ break;
#endif
default:
return NULL;
cur_rule_arch = lxc_seccomp_arch_s390x;
}
+#endif
+#ifdef SCMP_ARCH_S390
+ else if (strcmp(line, "[s390]") == 0 ||
+ strcmp(line, "[S390]") == 0) {
+ if (native_arch != lxc_seccomp_arch_s390) {
+ cur_rule_arch = lxc_seccomp_arch_unknown;
+ continue;
+ }
+
+ cur_rule_arch = lxc_seccomp_arch_s390;
+ }
#endif
else {
goto bad_arch;