From b13fc460dfdec9e200272faca3e14977257e2e7a Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 16 May 2016 10:12:29 +0100 Subject: 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 --- common/flatpak-run.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- cgit v1.2.1