Skip to content

Commit fade4b3

Browse files
author
MarcoFalke
committed
util: Add missing fstatfs to syscall sandbox
1 parent fe03f7a commit fade4b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/syscall_sandbox.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,14 +581,15 @@ class SeccompPolicyBuilder
581581
allowed_syscalls.insert(__NR_fdatasync); // synchronize a file's in-core state with storage device
582582
allowed_syscalls.insert(__NR_flock); // apply or remove an advisory lock on an open file
583583
allowed_syscalls.insert(__NR_fstat); // get file status
584-
allowed_syscalls.insert(__NR_newfstatat); // get file status
584+
allowed_syscalls.insert(__NR_fstatfs); // get file system status
585585
allowed_syscalls.insert(__NR_fsync); // synchronize a file's in-core state with storage device
586586
allowed_syscalls.insert(__NR_ftruncate); // truncate a file to a specified length
587587
allowed_syscalls.insert(__NR_getcwd); // get current working directory
588588
allowed_syscalls.insert(__NR_getdents); // get directory entries
589589
allowed_syscalls.insert(__NR_getdents64); // get directory entries
590590
allowed_syscalls.insert(__NR_lstat); // get file status
591591
allowed_syscalls.insert(__NR_mkdir); // create a directory
592+
allowed_syscalls.insert(__NR_newfstatat); // get file status
592593
allowed_syscalls.insert(__NR_open); // open and possibly create a file
593594
allowed_syscalls.insert(__NR_openat); // open and possibly create a file
594595
allowed_syscalls.insert(__NR_readlink); // read value of a symbolic link

0 commit comments

Comments
 (0)