]> git.ipfire.org Git - thirdparty/lxc.git/commit
seccomp: handle inverted arch 697/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Nov 2015 23:22:48 +0000 (17:22 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Nov 2015 23:22:48 +0000 (17:22 -0600)
commit473ebc77d6762c2ec49fe59983dabc04f695fd01
treeab99370f826758a0863d2c4e360319d5bfe860dd
parent2681c0e7eae2c4008fc6bc79a4c128cbaca8beab
seccomp: handle inverted arch

lxc uses uname to check the kernel version.  Seccomp respects userspace.  In the case
of 32-bit userspace on 64-bit kernel, this was a bad combination.

When we run into that case, make sure that the compat seccomp context is 32-bit, and
the lxc->seccomp_ctx is the 64-bit.

Closes #654

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/seccomp.c