summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2020-07-01 20:30:04 +0100
committerDaniel Pinto <danielpinto52@gmail.com>2020-07-20 22:35:05 +0100
commitd75e7daaab311df0c69428ff68fa5b95d819bb2c (patch)
treed039549cb26154de3a16b1643de9faa1c146f1cb /changes
parentc9751e26119e375fcbc74107e89958957c00ee5e (diff)
downloadtor-d75e7daaab311df0c69428ff68fa5b95d819bb2c.tar.gz
tor-d75e7daaab311df0c69428ff68fa5b95d819bb2c.zip
Fix seccomp sandbox rules for openat #27315
The need for casting negative syscall arguments depends on the glibc version. This affects the rules for the openat syscall which uses the constant AT_FDCWD that is defined as a negative number. This commit adds logic to only apply the cast when necessary, on glibc versions from 2.27 onwards.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug273156
1 files changed, 6 insertions, 0 deletions
diff --git a/changes/bug27315 b/changes/bug27315
new file mode 100644
index 0000000000..8af3ac8559
--- /dev/null
+++ b/changes/bug27315
@@ -0,0 +1,6 @@
+ o Minor bugfixes (linux seccomp2 sandbox):
+ - Fix a regression on sandboxing rules for the openat() syscall.
+ The fix for bug 25440 fixed the problem on systems with glibc >=
+ 2.27 but broke tor on previous versions of glibc. We now apply
+ the correct seccomp rule according to the running glibc version.
+ Patch from Daniel Pinto. Fixes bug 27315; bugfix on 0.3.5.11.