]> git.ipfire.org Git - thirdparty/lxc.git/commit
seccomp: add ppc support
authorBogdan Purcareata <bogdan.purcareata@freescale.com>
Thu, 12 Mar 2015 08:57:47 +0000 (08:57 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 16 Mar 2015 17:37:42 +0000 (13:37 -0400)
commit9ee1d6d59e4bd4f47d4b01808f04b80fb4562f29
treedfa3402553657d492c1d290c8fa1bdf4c7b321e5
parentbdd4f714b98f82e348e0d2ce3cbf7d4612956783
seccomp: add ppc support

This patch enables seccomp support for LXC containers running on PowerPC
architectures. It is based on the latest PowerPC support added to libseccomp, on
the working-ppc64 branch [1].

Libseccomp has been tested on ppc, ppc64 and ppc64le architectures. LXC with
seccomp support has been tested on ppc and ppc64 architectures, using the
default seccomp policy example files delivered with the LXC package.

[1] https://github.com/seccomp/libseccomp/commits/working-ppc64

v2:
- add #ifdefs in get_new_ctx to fix builds on systems not having SCMP_ARCH_PPC*
  defined

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/seccomp.c