]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Permit the fchmod system call.
authorNick Mathewson <nickm@torproject.org>
Fri, 16 Jun 2017 18:03:02 +0000 (14:03 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Jun 2017 18:03:02 +0000 (14:03 -0400)
Fixes bug 22516; bugfix on 0.2.5.4-alpha.

changes/bug22516 [new file with mode: 0644]
src/common/sandbox.c

diff --git a/changes/bug22516 b/changes/bug22516
new file mode 100644 (file)
index 0000000..f024a3c
--- /dev/null
@@ -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.
index 95c9f83b8da4c01128b5b5f870d2d2df45fb2a4d..da96ad8248a9f9fa4a16198a4731f5c5a527e5cd 100644 (file)
@@ -135,6 +135,9 @@ static int filter_nopar_gen[] = {
 #endif
 #ifdef HAVE_PIPE
     SCMP_SYS(pipe),
+#endif
+#ifdef __NR_fchmod
+    SCMP_SYS(fchmod),
 #endif
     SCMP_SYS(fcntl),
     SCMP_SYS(fstat),