From: Vivek Goyal <vgoyal@redhat.com> To: qemu-devel@nongnu.org, virtio-fs@redhat.com Cc: dgilbert@redhat.com, vgoyal@redhat.com Subject: [PATCH 0/2] virtiofsd: Add capability to block xattrs Date: Thu, 26 Aug 2021 17:19:35 -0400 [thread overview] Message-ID: <20210826211937.317558-1-vgoyal@redhat.com> (raw) As of now we have a knob "-o xattr/no_xattr" which either enables all xattrs or disables all xattrs. We need something more fine grained where we can selectively disable only certain xattrs (and not all). For example, in some cases we want to disable "security.selinux" xattr. This is equivalent to virtiofs not supporting security.selinux and guest kernel will fallback to a single label for whole fs (virtiofs_t). So add an option "-o block_xattr=<list-of-xattrs>" which will allow specifying a list of xattrs to block. Vivek Goyal (2): virtiofsd: Add an array to keep track of blocked xattrs virtiofsd: Add option "block_xattr=" to block certain xattrs docs/tools/virtiofsd.rst | 17 ++++ tools/virtiofsd/helper.c | 3 + tools/virtiofsd/passthrough_ll.c | 166 ++++++++++++++++++++++++++++--- 3 files changed, 171 insertions(+), 15 deletions(-) -- 2.31.1
WARNING: multiple messages have this Message-ID (diff)
From: Vivek Goyal <vgoyal@redhat.com> To: qemu-devel@nongnu.org, virtio-fs@redhat.com Cc: vgoyal@redhat.com Subject: [Virtio-fs] [PATCH 0/2] virtiofsd: Add capability to block xattrs Date: Thu, 26 Aug 2021 17:19:35 -0400 [thread overview] Message-ID: <20210826211937.317558-1-vgoyal@redhat.com> (raw) As of now we have a knob "-o xattr/no_xattr" which either enables all xattrs or disables all xattrs. We need something more fine grained where we can selectively disable only certain xattrs (and not all). For example, in some cases we want to disable "security.selinux" xattr. This is equivalent to virtiofs not supporting security.selinux and guest kernel will fallback to a single label for whole fs (virtiofs_t). So add an option "-o block_xattr=<list-of-xattrs>" which will allow specifying a list of xattrs to block. Vivek Goyal (2): virtiofsd: Add an array to keep track of blocked xattrs virtiofsd: Add option "block_xattr=" to block certain xattrs docs/tools/virtiofsd.rst | 17 ++++ tools/virtiofsd/helper.c | 3 + tools/virtiofsd/passthrough_ll.c | 166 ++++++++++++++++++++++++++++--- 3 files changed, 171 insertions(+), 15 deletions(-) -- 2.31.1
next reply other threads:[~2021-08-26 21:54 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-26 21:19 Vivek Goyal [this message] 2021-08-26 21:19 ` [Virtio-fs] [PATCH 0/2] virtiofsd: Add capability to block xattrs Vivek Goyal 2021-08-26 21:19 ` [PATCH 1/2] virtiofsd: Add an array to keep track of blocked xattrs Vivek Goyal 2021-08-26 21:19 ` [Virtio-fs] " Vivek Goyal 2021-08-26 21:19 ` [PATCH 2/2] virtiofsd: Add option "block_xattr=" to block certain xattrs Vivek Goyal 2021-08-26 21:19 ` [Virtio-fs] " Vivek Goyal 2021-09-22 11:00 ` [PATCH 0/2] virtiofsd: Add capability to block xattrs Dr. David Alan Gilbert 2021-09-22 11:00 ` [Virtio-fs] " Dr. David Alan Gilbert 2021-09-22 12:30 ` Vivek Goyal 2021-09-22 12:30 ` [Virtio-fs] " Vivek Goyal
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=20210826211937.317558-1-vgoyal@redhat.com \ --to=vgoyal@redhat.com \ --cc=dgilbert@redhat.com \ --cc=qemu-devel@nongnu.org \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.