Skip to content

virtiofsd: Add capability to block xattrs

Vivek Goyal qemu-devel virtio-fs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtiofsd: Add an array to keep track of blocked xattrstools/virtiofsd/passthrough_ll.c+63 -140 replies
2/2virtiofsd: Add option "block_xattr=" to block certain xattrsdocs/tools/virtiofsd.rst tools/virtiofsd/helper.c tools/virtiofsd/passthrough_ll.c+114 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] virtiofsd: Add capability to block xattrs

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(-)
Signature · 1 line
2.31.1