summaryrefslogtreecommitdiff
path: root/src/shared/seccomp-util.c
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2017-12-22 10:06:29 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-22 15:30:03 +0100
commit63d00dfb64d8e8ffb3fb1564e49454c14d7853d3 (patch)
tree92bd0f512ecf77363b9a23f86b46a0ae3de174aa /src/shared/seccomp-util.c
parente1694a752f1d9f3cf32b2cef9d80812d654e7b57 (diff)
downloadsystemd-63d00dfb64d8e8ffb3fb1564e49454c14d7853d3.tar.gz
shared/seccomp: add mmap handling for powerpc
Also remove the warning: ./src/shared/seccomp-util.c:1414:2: warning: #warning "Consider adding the right mmap() syscall definitions here!" [-Wcpp] #warning "Consider adding the right mmap() syscall definitions here!"
Diffstat (limited to 'src/shared/seccomp-util.c')
-rw-r--r--src/shared/seccomp-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
index b8f2b30a71..4f098238d9 100644
--- a/src/shared/seccomp-util.c
+++ b/src/shared/seccomp-util.c
@@ -1386,6 +1386,7 @@ int seccomp_memory_deny_write_execute(void) {
block_syscall = SCMP_SYS(mmap);
break;
+ case SCMP_ARCH_PPC:
case SCMP_ARCH_PPC64:
case SCMP_ARCH_PPC64LE:
filter_syscall = SCMP_SYS(mmap);
@@ -1410,7 +1411,7 @@ int seccomp_memory_deny_write_execute(void) {
/* Please add more definitions here, if you port systemd to other architectures! */
-#if !defined(__i386__) && !defined(__x86_64__) && !defined(__powerpc64__) && !defined(__arm__) && !defined(__aarch64__)
+#if !defined(__i386__) && !defined(__x86_64__) && !defined(__powerpc__) && !defined(__powerpc64__) && !defined(__arm__) && !defined(__aarch64__)
#warning "Consider adding the right mmap() syscall definitions here!"
#endif
}