qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
To: qemu-devel@nongnu.org, virtio-fs@redhat.com, stefanha@redhat.com,
	groug@kaod.org, qemu-stable@nongnu.org
Subject: [PULL 4/5] virtiofsd: Add _llseek to the seccomp whitelist
Date: Thu,  4 Feb 2021 18:34:38 +0000	[thread overview]
Message-ID: <20210204183439.546918-5-dgilbert@redhat.com> (raw)
In-Reply-To: <20210204183439.546918-1-dgilbert@redhat.com>

From: Greg Kurz <groug@kaod.org>

This is how glibc implements lseek(2) on POWER.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1917692
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20210121171540.1449777-1-groug@kaod.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
 tools/virtiofsd/passthrough_seccomp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virtiofsd/passthrough_seccomp.c b/tools/virtiofsd/passthrough_seccomp.c
index a60d7da4b4..1ecf5bf318 100644
--- a/tools/virtiofsd/passthrough_seccomp.c
+++ b/tools/virtiofsd/passthrough_seccomp.c
@@ -65,6 +65,7 @@ static const int syscall_whitelist[] = {
     SCMP_SYS(linkat),
     SCMP_SYS(listxattr),
     SCMP_SYS(lseek),
+    SCMP_SYS(_llseek), /* For POWER */
     SCMP_SYS(madvise),
     SCMP_SYS(mkdirat),
     SCMP_SYS(mknodat),
-- 
2.29.2



  parent reply	other threads:[~2021-02-04 19:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 18:34 [PULL 0/5] virtiofs queue: Security fix Dr. David Alan Gilbert (git)
2021-02-04 18:34 ` [PULL 1/5] virtiofsd: extract lo_do_open() from lo_open() Dr. David Alan Gilbert (git)
2021-02-04 18:34 ` [PULL 2/5] virtiofsd: optionally return inode pointer from lo_do_lookup() Dr. David Alan Gilbert (git)
2021-02-04 18:34 ` [PULL 3/5] virtiofsd: prevent opening of special files (CVE-2020-35517) Dr. David Alan Gilbert (git)
2021-02-04 18:34 ` Dr. David Alan Gilbert (git) [this message]
2021-02-04 18:34 ` [PULL 5/5] virtiofsd: Add restart_syscall to the seccomp whitelist Dr. David Alan Gilbert (git)
2021-02-04 19:24 ` [PULL 0/5] virtiofs queue: Security fix no-reply
2021-02-04 19:39   ` Dr. David Alan Gilbert
2021-02-05 10:08 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210204183439.546918-5-dgilbert@redhat.com \
    --to=dgilbert@redhat.com \
    --cc=groug@kaod.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=virtio-fs@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).