util: Add inotify_rm_watch to syscall sandbox (AllowFileSystem)

Github-Pull: bitcoin#24690
Rebased-From: f05a4cd
This commit is contained in:
Hennadii Stepanov 2022-03-28 09:14:29 +02:00 committed by Jon Atack
parent ded10fe3ea
commit 174af33d5d
No known key found for this signature in database
GPG key ID: 796C4109063D4EAF

View file

@ -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