commit 9beae02713fcd30dbd75d0724bd5ee36d97c40b4
parent 8697205be400e560c7ae4083d7febd7aa593e61a
Author: George Kadianakis <desnacked@riseup.net>
Date: Wed, 1 Jul 2020 12:54:29 +0300
Merge branch 'tor-github/pr/1766' into maint-0.3.5
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/changes/ticket33346 b/changes/ticket33346
@@ -0,0 +1,3 @@
+ o Minor features (linux seccomp2 sandbox):
+ - Permit the unlinkat() syscall, which some Libc implementations
+ use to implement unlink(). Closes ticket 33346.
diff --git a/src/lib/sandbox/sandbox.c b/src/lib/sandbox/sandbox.c
@@ -269,6 +269,9 @@ static int filter_nopar_gen[] = {
SCMP_SYS(recvfrom),
SCMP_SYS(sendto),
SCMP_SYS(unlink),
+#ifdef __NR_unlinkat
+ SCMP_SYS(unlinkat),
+#endif
SCMP_SYS(poll)
};