qemu/docs/tools
Vivek Goyal 5afc8df46c virtiofsd: xattr mapping add a new type "unsupported"
Right now for xattr remapping, we support types of "prefix", "ok" or "bad".
Type "bad" returns -EPERM on setxattr and hides xattr in listxattr. For
getxattr, mapping code returns -EPERM but getxattr code converts it to -ENODATA.

I need a new semantics where if an xattr is unsupported, then
getxattr()/setxattr() return -ENOTSUP and listxattr() should hide the xattr.
This is needed to simulate that security.selinux is not supported by
virtiofs filesystem and in that case client falls back to some default
label specified by policy.

So add a new type "unsupported" which returns -ENOTSUP on getxattr() and
setxattr() and hides xattrs in listxattr().

For example, one can use following mapping rule to not support
security.selinux xattr and allow others.

"-o xattrmap=/unsupported/all/security.selinux/security.selinux//ok/all///"

Suggested-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Message-Id: <YUt9qbmgAfCFfg5t@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2021-10-25 18:48:23 +01:00
..
index.rst docs: standardize directory index to --- with overline 2021-09-13 13:56:26 +02:00
qemu-img.rst qemu-img: Add -F shorthand to convert 2021-09-15 18:42:38 +02:00
qemu-nbd.rst qemu-nbd: Change default cache mode to writeback 2021-09-29 13:46:31 -05:00
qemu-pr-helper.rst docs: standardize book titles to === with overline 2021-09-13 13:56:26 +02:00
qemu-storage-daemon.rst docs: standardize book titles to === with overline 2021-09-13 13:56:26 +02:00
qemu-trace-stap.rst docs: standardize book titles to === with overline 2021-09-13 13:56:26 +02:00
virtfs-proxy-helper.rst docs: Move tools documentation to tools manual 2020-02-25 10:48:06 +00:00
virtiofsd.rst virtiofsd: xattr mapping add a new type "unsupported" 2021-10-25 18:48:23 +01:00