aboutsummaryrefslogtreecommitdiff
path: root/src/util/syscall_sandbox.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-28 09:14:29 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-28 09:14:29 +0200
commitf05a4cdf5a0363e1c12f00c034afb60e7ea0c775 (patch)
tree4d3589f14d0d24151d893427e60199e3881e4463 /src/util/syscall_sandbox.cpp
parent3297f5c11c72dd83479ff8335e047555e3f8cb3b (diff)
downloadbitcoin-f05a4cdf5a0363e1c12f00c034afb60e7ea0c775.tar.xz
util: Add inotify_rm_watch to syscall sandbox (AllowFileSystem)
Diffstat (limited to 'src/util/syscall_sandbox.cpp')
-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