mirror of
https://passt.top/passt
synced 2025-06-17 20:55:34 +02:00
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>
This commit is contained in:
parent
b93c2c1713
commit
fa7e2e7016
3 changed files with 18 additions and 4 deletions
2
passt.c
2
passt.c
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue