mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
nfqws,tpws: fix seccomp for ppc64
This commit is contained in:
parent
c97c7ae9b7
commit
6cedc7301d
18
nfq/sec.h
18
nfq/sec.h
@ -59,11 +59,19 @@ bool dropcaps(void);
|
|||||||
# define ARCH_NR AUDIT_ARCH_MIPS64
|
# define ARCH_NR AUDIT_ARCH_MIPS64
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# warning "Platform does not support seccomp filter yet"
|
# error "Unsupported mips abi"
|
||||||
# define REG_SYSCALL 0
|
|
||||||
# define ARCH_NR 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#elif defined(__PPC64__)
|
||||||
|
|
||||||
|
# define REG_SYSCALL regs.gpr[0]
|
||||||
|
|
||||||
|
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||||
|
# define ARCH_NR AUDIT_ARCH_PPC64LE
|
||||||
|
# else
|
||||||
|
# define ARCH_NR AUDIT_ARCH_PPC64
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(__PPC__)
|
#elif defined(__PPC__)
|
||||||
|
|
||||||
# define REG_SYSCALL regs.gpr[0]
|
# define REG_SYSCALL regs.gpr[0]
|
||||||
@ -71,9 +79,7 @@ bool dropcaps(void);
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# warning "Platform does not support seccomp filter yet"
|
# error "Platform does not support seccomp filter yet"
|
||||||
# define REG_SYSCALL 0
|
|
||||||
# define ARCH_NR 0
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
18
tpws/sec.h
18
tpws/sec.h
@ -61,11 +61,19 @@ bool dropcaps(void);
|
|||||||
# define ARCH_NR AUDIT_ARCH_MIPS64
|
# define ARCH_NR AUDIT_ARCH_MIPS64
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# warning "Platform does not support seccomp filter yet"
|
# error "Unsupported mips abi"
|
||||||
# define REG_SYSCALL 0
|
|
||||||
# define ARCH_NR 0
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#elif defined(__PPC64__)
|
||||||
|
|
||||||
|
# define REG_SYSCALL regs.gpr[0]
|
||||||
|
|
||||||
|
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||||
|
# define ARCH_NR AUDIT_ARCH_PPC64LE
|
||||||
|
# else
|
||||||
|
# define ARCH_NR AUDIT_ARCH_PPC64
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(__PPC__)
|
#elif defined(__PPC__)
|
||||||
|
|
||||||
# define REG_SYSCALL regs.gpr[0]
|
# define REG_SYSCALL regs.gpr[0]
|
||||||
@ -73,9 +81,7 @@ bool dropcaps(void);
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# warning "Platform does not support seccomp filter yet"
|
# error "Platform does not support seccomp filter yet"
|
||||||
# define REG_SYSCALL 0
|
|
||||||
# define ARCH_NR 0
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user