mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
d28bfb2cd5
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
10 lines
541 B
Plaintext
10 lines
541 B
Plaintext
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.
|