mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-09 15:24:54 -04:00
main: do not copyup opaque xattr
when performing the copyup, do not copy the private xattrs. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
214d606084
commit
ce93abae5f
8
main.c
8
main.c
@ -2328,7 +2328,13 @@ copy_xattr (int sfd, int dfd, char *buf, size_t buf_size)
|
||||
for (it = buf; it - buf < xattr_len; it += strlen (it) + 1)
|
||||
{
|
||||
cleanup_free char *v = NULL;
|
||||
ssize_t s = safe_read_xattr (&v, sfd, it, 256);
|
||||
ssize_t s;
|
||||
|
||||
if (has_prefix (it, XATTR_PREFIX)
|
||||
|| has_prefix (it, PRIVILEGED_XATTR_PREFIX))
|
||||
continue;
|
||||
|
||||
s = safe_read_xattr (&v, sfd, it, 256);
|
||||
if (s < 0)
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user