summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-10-23 02:17:31 +0200
committerJulian Andres Klode <jak@debian.org>2017-10-23 02:17:31 +0200
commit669b310a6676f2247165e492b673d2e5bcb06f89 (patch)
treeb60225d32ff19a0d35486c321ab994ac88e70d2a
parentabe429029c2d2b407a67e2a48d4594184cb88a5e (diff)
seccomp: Conditionalize statx() whitelisting
statx was introduced in 4.11, so it fails to build in stretch if we just unconditionally use it.
-rw-r--r--methods/aptmethod.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/methods/aptmethod.h b/methods/aptmethod.h
index ea75f4848..5616ad824 100644
--- a/methods/aptmethod.h
+++ b/methods/aptmethod.h
@@ -199,7 +199,9 @@ protected:
ALLOW(stat64);
ALLOW(statfs);
ALLOW(statfs64);
+#ifdef __NR_statx
ALLOW(statx);
+#endif
ALLOW(sync);
ALLOW(syscall);
ALLOW(time);