]> git.ipfire.org Git - thirdparty/lxc.git/commit
seccomp: allow x32 guests on amd64 hosts. 1428/head
authorAdam Borowski <kilobyte@angband.pl>
Sun, 12 Feb 2017 06:26:54 +0000 (07:26 +0100)
committerAdam Borowski <kilobyte@angband.pl>
Sun, 12 Feb 2017 06:26:54 +0000 (07:26 +0100)
commit11de80d63cbece239779babe30a50aaa4df8340e
treea28526d1ce76fd3f48046d5be04145388f0d5861
parent3a5cb1afffea06ad45a1144bbc3098bb6d5c7e11
seccomp: allow x32 guests on amd64 hosts.

Without this patch, x32 guests (and no others) worked "natively" with x32
host lxc, but not on regular amd64 hosts.  That was especially problematic
as a number of ioctls such as those needed by netfilter don't work in such
scenarios, thus you want to run amd64 on the host.

With the patch, you can use all three ABIs: i386 x32 amd64 on amd64 hosts.

Despite x32 being little used, there's no reason to deny it by default:
the admin needs to compile their own kernel with CONFIG_X86_X32=y or (on
Debian) boot with syscall.x32=y.  If they've done so, it is a reasonable
assumption they want x32 guests.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
src/lxc/seccomp.c