summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-05-16 10:12:29 +0100
committerAlexander Larsson <alexl@redhat.com>2016-05-16 16:28:55 +0200
commitb13fc460dfdec9e200272faca3e14977257e2e7a (patch)
treedb7e01f9be8e4afd4343a04e9fd452072e636284
parent4316c9e1047ca63fc831aff1cc36aab55f54332e (diff)
downloadxdg-app-b13fc460dfdec9e200272faca3e14977257e2e7a.tar.gz
flatpak-run.c: Handle arm and aarch64 arches
Allows 32bit applications to run in the sandbox on a 64bit aarch64 host. https://bugs.freedesktop.org/show_bug.cgi?id=95421
-rw-r--r--common/flatpak-run.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c
index b92f24d..aa5fb1f 100644
--- a/common/flatpak-run.c
+++ b/common/flatpak-run.c
@@ -2566,6 +2566,10 @@ setup_seccomp (GPtrArray *argv_array,
arch_id = SCMP_ARCH_X86;
else if (strcmp (arch, "x86_64") == 0)
arch_id = SCMP_ARCH_X86_64;
+ else if (strcmp (arch, "arm") == 0)
+ arch_id = SCMP_ARCH_ARM;
+ else if (strcmp (arch, "aarch64") == 0)
+ arch_id = SCMP_ARCH_AARCH64;
/* We only really need to handle arches on multiarch systems.
* If only one arch is supported the default is fine */