]> git.ipfire.org Git - thirdparty/lxc.git/commit
seccomp: allow x32 guests on amd64 hosts.
authorAdam Borowski <kilobyte@angband.pl>
Sun, 12 Feb 2017 06:26:54 +0000 (07:26 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 20 Mar 2017 21:44:44 +0000 (17:44 -0400)
commitfef913379838ba1160b0fa9d29ddbec454004de6
tree99720dd89ccb743778bc5b6a5c9713bae426aa97
parenta8164a74ff49466851f2fbb4f0cb78906793405b
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