From 5d2158e89a753515da62009c0bfd076a625b691c Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Tue, 28 Jan 2020 12:42:24 +0100 Subject: [PATCH] pxar::fuse: return ACL names in listxattr if present Signed-off-by: Christian Ebner Signed-off-by: Wolfgang Bumiller --- src/pxar/fuse.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pxar/fuse.rs b/src/pxar/fuse.rs index ad451be2..c2b4c854 100644 --- a/src/pxar/fuse.rs +++ b/src/pxar/fuse.rs @@ -732,6 +732,14 @@ impl Session { 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"); + } + 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 { buffer.append(&mut xattr.name); buffer.push(b'\0');