]> git.ipfire.org Git - thirdparty/lxc.git/commit
seccomp: fix 32-bit rules
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 20 Jun 2014 19:58:41 +0000 (14:58 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 30 Jun 2014 16:30:06 +0000 (12:30 -0400)
commit0995cb736e34360c911d79bf66958c270fe840db
tree2484de2b01f769b02a7eb2365a05e91c951dd482
parent391ece78f7181f744c39ef17a7d0761f35eb78dc
seccomp: fix 32-bit rules

When calling seccomp_rule_add(), you must pass the native syscall number
even if the context is a 32-bit context.  So use resolve_name rather
than resolve_name_arch.

Enhance the check of /proc/self/status for Seccomp: so that we do not
enable seccomp policies if seccomp is not built into the kernel.  This
is needed before we can enable by-default seccomp policies (which we
want to do next)

Fix wrong return value check from seccomp_arch_exist, and remove
needless abstraction in arch handling.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/seccomp.c