Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable few more architectures #184

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.0.14
Add support for AArch64 and s/390(x) architectures.
0.0.13 Thu 28, May, 2015
Update default host to google.com - www.ptb.de randomized timestamps
0.0.12 Sun 26, Oct, 2014
Expand Down
14 changes: 14 additions & 0 deletions src/seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@
# define EM_ARM 40
# endif
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM
#elif defined(__aarch64__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
#elif defined(__powerpc__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
#elif defined(__powerpc64le__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
#elif defined(__powerpc64__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
#elif defined(__s390__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390
#elif defined(__s390x__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390X
#else
# error "Platform does not support seccomp filter yet"
#endif
Expand Down Expand Up @@ -87,7 +99,9 @@ enable_setter_seccomp (void)
SC_ALLOW (exit_group),
SC_ALLOW (exit),

#ifdef __NR_open
SC_DENY (open, EINVAL),
#endif
SC_DENY (fcntl, EINVAL),
SC_DENY (fstat, EINVAL),
#ifdef __NR_mmap
Expand Down