Commit a5690657 authored by Carlo Landmeter's avatar Carlo Landmeter

main/lxc: add missing patch

parent 6e7837dd
From e319eb3478799207d3185bfc780b94d0959ea627 Mon Sep 17 00:00:00 2001
From: James Cowgill <james410@cowgill.org.uk>
Date: Thu, 18 Aug 2016 14:27:35 +0100
Subject: [PATCH] seccomp: Add mips and mips64 entries to lxc_config_parse_arch
Fixes "unsupported personality" warnings when starting containers.
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
---
src/lxc/confile.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index 5ce2dc4..f5e639d 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -2079,9 +2079,13 @@ signed long lxc_config_parse_arch(const char *arch)
{ "i586", PER_LINUX32 },
{ "i686", PER_LINUX32 },
{ "athlon", PER_LINUX32 },
+ { "mips", PER_LINUX32 },
+ { "mipsel", PER_LINUX32 },
{ "linux64", PER_LINUX },
{ "x86_64", PER_LINUX },
{ "amd64", PER_LINUX },
+ { "mips64", PER_LINUX },
+ { "mips64el", PER_LINUX },
};
size_t len = sizeof(pername) / sizeof(pername[0]);
From 08245e8c1b77eb068c3e3b41c787e5b170554aad Mon Sep 17 00:00:00 2001
From: Christian Brauner <cbrauner@suse.de>
Date: Fri, 19 Aug 2016 11:15:30 +0200
Subject: [PATCH] confile: add more archs to lxc_config_parse_arch()
Signed-off-by: Christian Brauner <cbrauner@suse.de>
---
src/lxc/confile.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index f5e639d..fac919d 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -2081,11 +2081,24 @@ signed long lxc_config_parse_arch(const char *arch)
{ "athlon", PER_LINUX32 },
{ "mips", PER_LINUX32 },
{ "mipsel", PER_LINUX32 },
+ { "ppc", PER_LINUX32 },
+ { "arm", PER_LINUX32 },
+ { "armv7l", PER_LINUX32 },
+ { "armhf", PER_LINUX32 },
+ { "armel", PER_LINUX32 },
+ { "powerpc", PER_LINUX32 },
{ "linux64", PER_LINUX },
{ "x86_64", PER_LINUX },
{ "amd64", PER_LINUX },
{ "mips64", PER_LINUX },
{ "mips64el", PER_LINUX },
+ { "ppc64", PER_LINUX },
+ { "ppc64le", PER_LINUX },
+ { "ppc64el", PER_LINUX },
+ { "powerpc64", PER_LINUX },
+ { "s390x", PER_LINUX },
+ { "aarch64", PER_LINUX },
+ { "arm64", PER_LINUX },
};
size_t len = sizeof(pername) / sizeof(pername[0]);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment