From c81cb588db6c5176c7423b1a2f98218a8989b5dd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 26 Feb 2020 15:17:12 -0500 Subject: Allow unlinkat() in the seccomp2 sandbox Closes ticket 33346. --- src/lib/sandbox/sandbox.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/lib/sandbox/sandbox.c b/src/lib/sandbox/sandbox.c index 8f577b0660..63d3e0b9a3 100644 --- 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) }; -- cgit v1.2.3-54-g00ecf