pxar::fuse: return ACL names in listxattr if present

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:24 +01:00 committed by Wolfgang Bumiller
parent 72677fb0a5
commit 5d2158e89a

View File

@ -732,6 +732,14 @@ impl Session {
buffer.extend_from_slice(&fcaps.data); buffer.extend_from_slice(&fcaps.data);
buffer.push(b'\0'); buffer.push(b'\0');
} }
if entry.xattr.acl_default.is_some() {
buffer.extend_from_slice(b"system.posix_acl_default\0");
}
if entry.xattr.acl_group_obj.is_some()
|| !entry.xattr.acl_user.is_empty()
|| !entry.xattr.acl_group.is_empty() {
buffer.extend_from_slice(b"system.posix_acl_user\0");
}
for xattr in &mut entry.xattr.xattrs { for xattr in &mut entry.xattr.xattrs {
buffer.append(&mut xattr.name); buffer.append(&mut xattr.name);
buffer.push(b'\0'); buffer.push(b'\0');