mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-13 20:52:39 -04:00
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:
committed by
Alexander Larsson
parent
4316c9e104
commit
b13fc460df
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user