I've been fixing and sitting on these patches for some time now,
waiting on upstream x32 kernel fixes (x32) and access to an ARM*
system for verification. Unfortunately, sitting on this large of
a patchset results in merging problems whenever we add another
patch to the repo.
Therefore, I'm considering simply merging the following patches
just to get them into repo and we can always fix up any problems
that may appear during testing. If I don't hear any objects in
the next day or two I'll go ahead.
* Does anyone have an ARM system running 3.8 that they would be
willing to test?
---
Paul Moore (15):
arch: disconnect the BPF arch token from the libseccomp token
bpf: support multiple architectures sharing the same BPF arch token
bpf: fix a problem with duplicate syscalls across architectures
arch: add basic x32 support
arch: add basic ARM support
tools: trim unsupported architectures from the BPF simulator
arch: rename arch-i386* to arch-x86*
arch: remove direct access to the syscall tables
arch: leverage the x86_64 syscall table in x32
tools: add a new architecture detection tool
tests: add support for the x32 and arm architectures
tests: minor fixups due to the new arch support
tests: add a test to exercise the x32 and arm architectures
tests: add a live test to exercise the syscall argument matching
arch: ensure that we handle x32 correctly when checking the architecture
include/seccomp.h.in | 149 +++++++++++
src/Makefile | 4
src/api.c | 16 +
src/arch-arm-syscalls.c | 480 +++++++++++++++++++++++++++++++++++++
src/arch-arm.c | 34 +++
src/arch-arm.h | 37 +++
src/arch-i386-syscalls.c | 413 --------------------------------
src/arch-i386.c | 113 ---------
src/arch-i386.h | 41 ---
src/arch-x32-syscalls.c | 67 +++++
src/arch-x32.c | 35 +++
src/arch-x32.h | 39 +++
src/arch-x86-syscalls.c | 469 ++++++++++++++++++++++++++++++++++++
src/arch-x86.c | 113 +++++++++
src/arch-x86.h | 42 +++
src/arch-x86_64-syscalls.c | 60 ++++-
src/arch-x86_64.c | 3
src/arch-x86_64.h | 4
src/arch.c | 145 +++++------
src/arch.h | 3
src/gen_bpf.c | 283 ++++++++++++++--------
src/gen_pfc.c | 12 +
src/python/libseccomp.pxd | 2
src/python/seccomp.pyx | 4
tests/.gitignore | 2
tests/16-sim-arch_basic.c | 14 +
tests/16-sim-arch_basic.py | 8 -
tests/23-sim-arch_all_basic.c | 93 +++++++
tests/23-sim-arch_all_basic.py | 53 ++++
tests/23-sim-arch_all_basic.tests | 23 ++
tests/24-live-arg_allow.c | 93 +++++++
tests/24-live-arg_allow.py | 60 +++++
tests/24-live-arg_allow.tests | 11 +
tests/Makefile | 4
tests/regression | 7 -
tools/.gitignore | 1
tools/Makefile | 3
tools/arch_detect.c | 88 +++++++
tools/bpf_sim.c | 15 -
tools/sys_resolver.c | 14 +
40 files changed, 2262 insertions(+), 795 deletions(-)
create mode 100644 src/arch-arm-syscalls.c
create mode 100644 src/arch-arm.c
create mode 100644 src/arch-arm.h
delete mode 100644 src/arch-i386-syscalls.c
delete mode 100644 src/arch-i386.c
delete mode 100644 src/arch-i386.h
create mode 100644 src/arch-x32-syscalls.c
create mode 100644 src/arch-x32.c
create mode 100644 src/arch-x32.h
create mode 100644 src/arch-x86-syscalls.c
create mode 100644 src/arch-x86.c
create mode 100644 src/arch-x86.h
create mode 100644 tests/23-sim-arch_all_basic.c
create mode 100755 tests/23-sim-arch_all_basic.py
create mode 100644 tests/23-sim-arch_all_basic.tests
create mode 100644 tests/24-live-arg_allow.c
create mode 100755 tests/24-live-arg_allow.py
create mode 100644 tests/24-live-arg_allow.tests
create mode 100644 tools/arch_detect.c
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss