summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2018-01-03 08:03:44 +0000
committerColin Watson <cjwatson@debian.org>2018-01-03 08:03:44 +0000
commit976d142700b06fdc877952aed85fb9ae48941869 (patch)
treecf366941ab07dc203da9fa49935cfe1750cb3cbc /lib
parentc93c355dc98ea17786f880ed3e88cef0b8824fda (diff)
Fix seccomp sandbox on Linux/ARM
* lib/sandbox.c (make_seccomp_filter): Add arm_fadvise64_64 and arm_sync_file_range.
Diffstat (limited to 'lib')
-rw-r--r--lib/sandbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sandbox.c b/lib/sandbox.c
index 2ad47e95..545ac608 100644
--- a/lib/sandbox.c
+++ b/lib/sandbox.c
@@ -410,6 +410,8 @@ scmp_filter_ctx make_seccomp_filter (int permissive)
SC_ALLOW ("syncfs");
/* Extra syscalls not in any of systemd's sets. */
+ SC_ALLOW ("arm_fadvise64_64");
+ SC_ALLOW ("arm_sync_file_range");
SC_ALLOW ("brk");
SC_ALLOW ("fadvise64");
SC_ALLOW ("fadvise64_64");