diff mbox series

[v3,1/2] virtiofsd: Add umask to seccom allow list

Message ID 20210223225250.23945-2-vgoyal@redhat.com (mailing list archive)
State New, archived
Headers show
Series virtiofsd: Enable posix_acl by default | expand

Commit Message

Vivek Goyal Feb. 23, 2021, 10:52 p.m. UTC
Patches in this series  are going to make use of "umask" syscall.
So allow it.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
---
 tools/virtiofsd/passthrough_seccomp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefan Hajnoczi Feb. 24, 2021, 12:25 p.m. UTC | #1
On Tue, Feb 23, 2021 at 05:52:49PM -0500, Vivek Goyal wrote:
> Patches in this series  are going to make use of "umask" syscall.
> So allow it.
> 
> Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
> ---
>  tools/virtiofsd/passthrough_seccomp.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff mbox series

Patch

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 */