diff options
author | Paul Moore <pmoore@redhat.com> | 2014-02-09 07:51:04 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-02-09 07:57:22 -0500 |
commit | 61fee77783fd458739eb6104f13d53bddfa389ac (patch) | |
tree | ef0e746763e57e742412d8e1c6266c89f9986084 /src/arch-arm.h | |
parent | 206da04b8b2366d9efb963569bb89fe82ed2d1ba (diff) | |
download | libseccomp-61fee77783fd458739eb6104f13d53bddfa389ac.tar.gz |
all: resolve issues caused by big endian systems
There are two major issues resolved in this patch: proper support for
generating BPF on big endian systems, and ensuring we build the BPF
correctly when the host system does not share the same endianess as
the target platform.
Relevant discussion in LKML regarding BPF on big endian systems:
https://lkml.org/lkml/2012/4/8/87
Inspired by an earlier patch from Markos Chandras.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/arch-arm.h')
-rw-r--r-- | src/arch-arm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch-arm.h b/src/arch-arm.h index a6f0b00..c585ab1 100644 --- a/src/arch-arm.h +++ b/src/arch-arm.h @@ -31,6 +31,8 @@ extern const struct arch_def arch_def_arm; +#define arm_arg_offset(x) (offsetof(struct seccomp_data, args[x])) + int arm_syscall_resolve_name(const char *name); const char *arm_syscall_resolve_num(int num); |