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
This commit is contained in:
Tristan Van Berkom
2016-05-16 10:12:29 +01:00
committed by Alexander Larsson
parent 4316c9e104
commit b13fc460df

View File

@@ -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 */