Re: lsetxattr failed, SELINUX_ERR op=setxattr invalid_context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oops wrong list, I'll repost to selinux@xxxxxxxxxxxxxxxxxxxxxxx

On Tue, Feb 8, 2022 at 4:10 PM Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> I'm running Fedora 35, and I'm trying to replicate a Fedora 36 root
> snapshot from one Btrfs file system to another, but it fails.
>
> This is what I see on CLI (with verbose logging)
>
> set_xattr etc/NetworkManager/dispatcher.d - name=security.selinux
> data_len=56 data=system_u:object_r:NetworkManager_dispatcher_script_t:s0
> ERROR: lsetxattr etc/NetworkManager/dispatcher.d
> security.selinux=system_u:object_r:NetworkManager_dispatcher_script_t:s0
> failed: Invalid argument
>
> This is the AVC error:
>
> [25325.074972] audit[23509]: AVC avc:  denied  { mac_admin } for
> pid=23509 comm="btrfs" capability=33
> scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
> tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
> tclass=capability2 permissive=0
> [25325.075188] audit: SELINUX_ERR op=setxattr
> invalid_context="system_u:object_r:NetworkManager_dispatcher_script_t:s0"
>
> I think what's going on is, Fedora 35's SELinux is preventing `btrfs
> receive` from setting a label it doesn't know. If so, is this
> definitely the correct behavior? Or is there something `btrfs receive`
> could do to allow setting this unfamiliar label anyway?
>
> I filed a btrfs-progs bug, feel free to answer there (or here)
> https://github.com/kdave/btrfs-progs/issues/447
>
> Thanks,
>
> --
> Chris Murphy



-- 
Chris Murphy
_______________________________________________
security mailing list -- security@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to security-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/security@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Coolkey]

  Powered by Linux