summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorVivek Goyal2021-06-22 17:08:49 +0200
committerDr. David Alan Gilbert2021-07-05 11:51:26 +0200
commit6d0028b94797157477ddc759209f3e523e186ad9 (patch)
treea4a4c3e8dc211edfb5bbfc5f9bce5e3a28ffa560 /tools
parentvirtiofsd: Add support for extended setxattr (diff)
downloadqemu-6d0028b94797157477ddc759209f3e523e186ad9.tar.gz
qemu-6d0028b94797157477ddc759209f3e523e186ad9.tar.xz
qemu-6d0028b94797157477ddc759209f3e523e186ad9.zip
virtiofsd: Add umask to seccom allow list
Patches in this series are going to make use of "umask" syscall. So allow it. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20210622150852.1507204-5-vgoyal@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtiofsd/passthrough_seccomp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtiofsd/passthrough_seccomp.c b/tools/virtiofsd/passthrough_seccomp.c
index 62441cfcdb..f49ed94b5e 100644
--- a/tools/virtiofsd/passthrough_seccomp.c
+++ b/tools/virtiofsd/passthrough_seccomp.c
@@ -114,6 +114,7 @@ static const int syscall_allowlist[] = {
SCMP_SYS(utimensat),
SCMP_SYS(write),
SCMP_SYS(writev),
+ SCMP_SYS(umask),
};
/* Syscalls used when --syslog is enabled */