|
Zbigniew Jędrzejewski-Szmek |
d044ab |
From e04118bd11f8268e7ee7b893f861f18f03bc6970 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Date: Sat, 15 Jul 2017 19:30:01 +0000
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Subject: [PATCH] seccomp: arm64 does not have mmap2
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
I messed up when adding the definitions in 4278d1f5310f5acb4c6a6788233625234edb5145.
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Unfortunately I didn't have the hardware at hand and went by
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
looking at the kernel headers.
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
(cherry picked from commit 53196fafcb7b24b45ed4f48ab894d00a24a6d871)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
(cherry picked from commit 79873bc850177050baa0c5165b119adafeebb891)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
src/shared/seccomp-util.c | 7 ++-----
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
index 1a8bfbe416..637ee8526e 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
--- a/src/shared/seccomp-util.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+++ b/src/shared/seccomp-util.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
@@ -1223,10 +1223,6 @@ int seccomp_memory_deny_write_execute(void) {
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
break;
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
- case SCMP_ARCH_AARCH64:
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
- block_syscall = SCMP_SYS(mmap);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
- /* fall through */
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
-
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
case SCMP_ARCH_ARM:
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
filter_syscall = SCMP_SYS(mmap2); /* arm has only mmap2 */
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
shmat_syscall = SCMP_SYS(shmat);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
@@ -1234,7 +1230,8 @@ int seccomp_memory_deny_write_execute(void) {
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
case SCMP_ARCH_X86_64:
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
case SCMP_ARCH_X32:
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
- filter_syscall = SCMP_SYS(mmap); /* amd64 and x32 have only mmap */
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ case SCMP_ARCH_AARCH64:
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ filter_syscall = SCMP_SYS(mmap); /* amd64, x32, and arm64 have only mmap */
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
shmat_syscall = SCMP_SYS(shmat);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
break;
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|