diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-01-25 19:07:05 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-01-26 07:57:09 +0100 |
commit | fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f (patch) | |
tree | 26385032bb55784396bb8288d5a0ddca50233cad /passt.c | |
parent | b93c2c1713edf28815bb4057d04ff2dfb892c307 (diff) | |
download | passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.tar passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.tar.gz passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.tar.bz2 passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.tar.lz passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.tar.xz passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.tar.zst passt-fa7e2e7016e45c3cf98ba92e0af30d9adc0f691f.zip |
Makefile, seccomp: Fix build for i386, ppc64, ppc64le
On some distributions, on ppc64, ulimit -s returns 'unlimited': add a
reasonable default, and also make sure ulimit is invoked using the
default shell, which should ensure ulimit is actually implemented.
Also note that AUDIT_ARCH doesn't follow closely the naming reported
by 'uname -m': convert for i386 and ppc as needed.
While at it, move inclusion of seccomp.h after util.h, the former is
less generic (cosmetic/clang-tidy only).
Older kernel headers might lack a definition for AUDIT_ARCH_PPC64LE:
define that explicitly if it's not available.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,8 +56,8 @@ #include <linux/capability.h> #include <linux/icmpv6.h> -#include "seccomp.h" #include "util.h" +#include "seccomp.h" #include "passt.h" #include "dhcp.h" #include "dhcpv6.h" |