]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/seccomp.c
seccomp: support 32-bit arm on arm64, and 32-bit ppc on ppc64
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 2 Dec 2015 22:42:36 +0000 (22:42 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 3 Dec 2015 06:15:40 +0000 (01:15 -0500)
commit7635139aa801f3dbe9d9b8091085fe9dce45ec15
treeb58cbf18ec3467fc0eb2ddd0003e75f8ccbe1f67
parent480c876b201e1296f94b53735eba786ba5879a6e
seccomp: support 32-bit arm on arm64, and 32-bit ppc on ppc64

Generally we enforce that a [arch] seccomp section can only be used on [arch].
However, on amd64 we allow [i386] sections for i386 containers, and there we
also take [all] sections and apply them for both 32- and 64-bit.

Do that also for ppc64 and arm64.  This allows seccomp-protected armhf
containers to run on arm64.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/seccomp.c