mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix seccomp sandbox rules for opening directories #40020
Different versions of glibc use either open or openat for the opendir function. This commit adds logic to use the correct rule for each glibc version, namely: - Until 2.14 open is used - From 2.15 to to 2.21 openat is used - From 2.22 to 2.26 open is used - From 2.27 onwards openat is used
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
o Minor bugfixes (linux seccomp2 sandbox):
|
||||
- Makes the seccomp sandbox allow the correct syscall for opendir
|
||||
according to the running glibc version. The opendir function
|
||||
either uses open or openat but the current code does not
|
||||
differenciate between opendir and open calls. This adds a new
|
||||
seccomp sandbox rule for opendir. This fixes crashes when
|
||||
reloading torrc with sandbox enabled when running on glibc
|
||||
2.15 to 2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020;
|
||||
bugfix on 0.3.5.11.
|
||||
Reference in New Issue
Block a user