Skip to contentSkip to conversation

File capabilities are lost when sending/receiving a btrfs subvolume

DISCUSSION Juan Orti Alcaine 3 participants 3 messages Apr 29, 2014 – May 9, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hello, I noticed that file capabilites are lost on received subvolumes, so I opened the bug report #68891 [1]. I don't know if other xattrs are affected by this problem.

I just like to know if fixing this issue is under the radar of the developers.

Thank you.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=68891

Signature · 3 lines
Juan Orti
GPG Key: DEEBD08B - http://jorti.fedorapeople.org/pubkey.asc
Blog: https://apuntesderoot.wordpress.com/
#1 lore raw
Quoted 3 lines · Juan Orti Alcaine

Hello, I noticed that file capabilites are lost on received subvolumes, so I opened the bug report #68891 [1]. I don't know if other xattrs are affected by this problem.

I can reproduce the reported problem with kernel 3.15rc3 and btrfs-progs 3.14. I don't know if these xattr are being dropped by the send (kernel), or the receive (progs). SELinux labels are preserved, so those xattr aren't affected by this problem.

I'm not sure if there's a single library/command that fully handles all xattr. So far I'm finding three distinct commands that leverage xattr but are mutually exclusive in that they don't list/remove other xattr.

Chris Murphy

#2 lore raw
Quoted 11 lines · Chris Murphy
Quoted 3 lines · Juan Orti Alcaine

Hello, I noticed that file capabilites are lost on received subvolumes, so I opened the bug report #68891 [1]. I don't know if other xattrs are affected by this problem.

I can reproduce the reported problem with kernel 3.15rc3 and btrfs-progs 3.14. I don't know if these xattr are being dropped by the send (kernel), or the receive (progs). SELinux labels are preserved, so those xattr aren't affected by this problem.

The bug is between progs and kernel on the receive side. The capability xattrs are sent correctly but not applied for some reason.