Btrfs send receive + Samba, ERROR: lsetxattr security.selinux= failed. Operation not supported.

Daniel J Walsh dwalsh at redhat.com
Mon Apr 6 18:05:28 UTC 2015


On 04/04/2015 04:27 PM, Chris Murphy wrote:
> On Sat, Apr 4, 2015 at 5:36 AM, Daniel J Walsh <dwalsh at redhat.com> wrote:
>> It is supposed to fail.
> Ok thanks. So at the moment this makes btrfs receive and Samba
> incompatible on the same volume. Mounting different subvolumes with
> different -o context= values  of course doesn't work, while subvolumes
> are separate fs trees they still share a superblock.
> SELinux: mount invalid.  Same superblock, different security settings
> for (dev sdd1, type btrfs)
>
> Is there a way to avoid using mount -o context? What about chcon -Rt
> samba_share_t on the subvolume that will be Samba shared, leaving
> other subvolumes with default labeling for btrfs receive?
>
>
>
That should work.


More information about the selinux mailing list