aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-02-14 17:20:40 +0100
committerMarcoFalke <falke.marco@gmail.com>2022-02-14 17:12:34 +0100
commitfa455975e52db3296a36fde827755cf91321fc2f (patch)
treec6546a8905c28276c17bc993960e7384d31bc94f
parentaf0b578041b76bd2f8ad2f69f15bd41cfce794cf (diff)
util: Add missing unlinkat to syscall sandbox
-rw-r--r--src/util/syscall_sandbox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/syscall_sandbox.cpp b/src/util/syscall_sandbox.cpp
index 4157be9d9f..f513dba598 100644
--- a/src/util/syscall_sandbox.cpp
+++ b/src/util/syscall_sandbox.cpp
@@ -600,6 +600,7 @@ public:
allowed_syscalls.insert(__NR_statfs); // get filesystem statistics
allowed_syscalls.insert(__NR_statx); // get file status (extended)
allowed_syscalls.insert(__NR_unlink); // delete a name and possibly the file it refers to
+ allowed_syscalls.insert(__NR_unlinkat); // delete relative to a directory file descriptor
}
void AllowFutex()