tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 1c64133cb3b9656fc37c1d8c91e1b4225f889428
parent cd7d006e0829ac83c1d9e5f04fff9ca239973014
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon, 19 Jun 2017 13:50:49 -0400

Merge remote-tracking branch 'public/bug22516_029' into maint-0.2.9

Diffstat:
Achanges/bug22516 | 5+++++
Msrc/common/sandbox.c | 3+++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/changes/bug22516 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 @@ -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