Re: selinux changes: why?

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

 



On 10/12/2021 10:22, Nick Urbanik wrote:
There is an ongoing problem of decay of selinux labels on this
machine; I would appreciate any suggestions on how to troubleshoot
this I find it alarming.

I wouldn't call it a "decay".  If it were that I wouldn't expect the context to be valid.  As it is, those files
have acquired the context of the parent directory.

[root@f35k ~]# ls -Zd /usr/sbin
system_u:object_r:bin_t:s0 /usr/sbin


$ sudo restorecon -rv *
Relabeled /usr/sbin/alsactl from system_u:object_r:bin_t:s0 to system_u:object_r:alsa_exec_t:s0
Relabeled /usr/sbin/ldconfig from system_u:object_r:bin_t:s0 to system_u:object_r:ldconfig_exec_t:s0
Relabeled /usr/sbin/pcscd from system_u:object_r:bin_t:s0 to system_u:object_r:pcscd_exec_t:s0

When you notice that the context is incorrect, do a "stat" on the file before you do the restorecon.

[root@f35k ~]# stat /usr/sbin/alsactl
  File: /usr/sbin/alsactl
  Size: 125280          Blocks: 248        IO Block: 4096   regular file
Device: 20h/32d Inode: 372367      Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/ root)
Context: system_u:object_r:alsa_exec_t:s0
Access: 2021-12-10 11:23:35.560487567 +0800
Modify: 2021-12-07 02:03:45.000000000 +0800
Change: 2021-12-10 11:22:50.795424435 +0800
 Birth: 2021-12-10 11:22:50.604428432 +0800

The time of 2021-12-10 11:22:50 corresponds to a "dnf update" which included an update to alsa-utils.


--
Did 황준호 die?
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux