summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-19 13:52:19 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-19 13:52:19 -0400
commit1bf534c8b37d0f1608395e9362384afb1f4f7187 (patch)
tree4ed7dbc4208b659b3645aaf91b347f49ef020c53
parentb4ae31e2b7084b3a8cfcdb4e892f2c6d43aea0bc (diff)
parent71c701927a27723f0bc9009a044a4bdece55f361 (diff)
downloadtor-1bf534c8b37d0f1608395e9362384afb1f4f7187.tar.gz
tor-1bf534c8b37d0f1608395e9362384afb1f4f7187.zip
Merge branch 'maint-0.3.0' into release-0.3.0
-rw-r--r--changes/bug225165
-rw-r--r--src/common/sandbox.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/changes/bug22516 b/changes/bug22516
new file mode 100644
index 0000000000..f024a3c470
--- /dev/null
+++ b/changes/bug22516
@@ -0,0 +1,5 @@
+ o Minor bugfixes (linux seccomp2 sandbox):
+ - Permit the fchmod system call, to avoid crashing on startup when
+ starting with the seccomp2 sandbox and an unexpected set of permissions
+ on the data directory or its contents. Fixes bug 22516; bugfix on
+ 0.2.5.4-alpha.
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 9c0b7950bd..8b92558a91 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -136,6 +136,9 @@ static int filter_nopar_gen[] = {
#ifdef HAVE_PIPE
SCMP_SYS(pipe),
#endif
+#ifdef __NR_fchmod
+ SCMP_SYS(fchmod),
+#endif
SCMP_SYS(fcntl),
SCMP_SYS(fstat),
#ifdef __NR_fstat64