From: Nick Mathewson Date: Fri, 16 Jun 2017 18:03:02 +0000 (-0400) Subject: Permit the fchmod system call. X-Git-Tag: tor-0.2.9.12~31^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59f29970fa78bec8c01bd5f16edca8c24b8724f5;p=thirdparty%2Ftor.git Permit the fchmod system call. Fixes bug 22516; bugfix on 0.2.5.4-alpha. --- 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 95c9f83b8d..da96ad8248 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -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),