]> 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>
Fri, 14 Aug 2015 16:50:34 +0000 (12:50 -0400)
commit09e90abbfc40b51a8c51fd62cc25599f6775c23b
tree8c4004e791fc0ee0bf33b04d3bb5c0ae698947ae
parent45c2cdd1dcad39a3b5609eb7eb7a09288f24a6aa
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