aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-28 09:14:29 +0200
committerJon Atack <jon@atack.com>2022-03-31 10:38:11 +0200
commit174af33d5d78cfe341b688f5393d9acc8c4aaf6b (patch)
tree55caf97b34fc1e492b411a1b69b60d84bc9eb835
parentded10fe3eae2ad8058d0cc8f1cee1ad1d34bb507 (diff)
downloadbitcoin-174af33d5d78cfe341b688f5393d9acc8c4aaf6b.tar.xz
util: Add inotify_rm_watch to syscall sandbox (AllowFileSystem)
Github-Pull: bitcoin#24690 Rebased-From: f05a4cd
-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 efc58914b6..a05efac602 100644
--- a/src/util/syscall_sandbox.cpp
+++ b/src/util/syscall_sandbox.cpp
@@ -592,6 +592,7 @@ public:
allowed_syscalls.insert(__NR_getcwd); // get current working directory
allowed_syscalls.insert(__NR_getdents); // get directory entries
allowed_syscalls.insert(__NR_getdents64); // get directory entries
+ allowed_syscalls.insert(__NR_inotify_rm_watch);// remove an existing watch from an inotify instance
allowed_syscalls.insert(__NR_linkat); // create relative to a directory file descriptor
allowed_syscalls.insert(__NR_lstat); // get file status
allowed_syscalls.insert(__NR_mkdir); // create a directory