pxar::fuse: Do not return fcaps value on listxattr.

listxattr must only return the name list, no extended attribute values.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Christian Ebner 2020-01-28 12:42:25 +01:00 committed by Wolfgang Bumiller
parent 5d2158e89a
commit 93a9eb284e

View File

@ -727,10 +727,8 @@ impl Session {
.map_err(|_| libc::EIO)?
.ok_or_else(|| libc::EIO)?;
let mut buffer = Vec::new();
if let Some(ref fcaps) = entry.xattr.fcaps {
if entry.xattr.fcaps.is_some() {
buffer.extend_from_slice(b"security.capability\0");
buffer.extend_from_slice(&fcaps.data);
buffer.push(b'\0');
}
if entry.xattr.acl_default.is_some() {
buffer.extend_from_slice(b"system.posix_acl_default\0");