summaryrefslogtreecommitdiff
path: root/methods/aptmethod.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-10-27 21:58:27 +0200
committerJulian Andres Klode <jak@debian.org>2017-10-27 21:58:27 +0200
commitcfb6061b82daa67def0349938bf6267c37e9906d (patch)
tree49fc0c719d828ba72ca807995fd3cb2e69d95cfa /methods/aptmethod.h
parentcc1f94c95373670fdfdb8e2d6cf9125181f7df0c (diff)
seccomp: Allow clock_nanosleep() and nanosleep() syscalls
We sleep in http.cc, so we should allow the sleeping syscalls.
Diffstat (limited to 'methods/aptmethod.h')
-rw-r--r--methods/aptmethod.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/methods/aptmethod.h b/methods/aptmethod.h
index e406e3c37..5cae7295b 100644
--- a/methods/aptmethod.h
+++ b/methods/aptmethod.h
@@ -94,6 +94,7 @@ protected:
ALLOW(chown32);
ALLOW(clock_getres);
ALLOW(clock_gettime);
+ ALLOW(clock_nanosleep);
ALLOW(close);
ALLOW(creat);
ALLOW(dup);
@@ -161,6 +162,7 @@ protected:
ALLOW(mremap);
ALLOW(msync);
ALLOW(munmap);
+ ALLOW(nanosleep);
ALLOW(newfstatat);
ALLOW(_newselect);
ALLOW(oldfstat);