diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-23 09:23:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-23 09:23:31 -0400 |
commit | c5ffcbb43f3e444a3e7f7f22057a5fee8958e569 (patch) | |
tree | bc655146053c844193cbed42b01eb091b52510d8 | |
parent | cd3fc2aa4867e89877bbfb99f4f767d761b91f25 (diff) | |
parent | beb321d8cdd6e7a2f0b9a0a4758cd71768531959 (diff) | |
download | tor-c5ffcbb43f3e444a3e7f7f22057a5fee8958e569.tar.gz tor-c5ffcbb43f3e444a3e7f7f22057a5fee8958e569.zip |
Merge branch 'maint-0.3.3'
-rw-r--r-- | changes/bug24969 | 3 | ||||
-rw-r--r-- | src/common/sandbox.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/changes/bug24969 b/changes/bug24969 new file mode 100644 index 0000000000..46b2bae6f4 --- /dev/null +++ b/changes/bug24969 @@ -0,0 +1,3 @@ + o Minor bugfixes (Linux seccomp2 sandbox): + - Allow the nanosleep() system call, which glibc uses to implement + sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha. diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 3588f60dec..440f8722f2 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -197,6 +197,9 @@ static int filter_nopar_gen[] = { SCMP_SYS(mmap), #endif SCMP_SYS(munmap), +#ifdef __NR_nanosleep + SCMP_SYS(nanosleep), +#endif #ifdef __NR_prlimit SCMP_SYS(prlimit), #endif |