SELinux AVC Denial when logging out

I’m on up to date Fedora 44 KDE. Lately when I select to log out of my user session I notice SELinux pops up with AVC Denial messages in the corner just before I am logged out. I can’t think of any change I would have done to my system that would cause this. I haven’t noticed any problems using my system despite the messages.

Using SELinux troubleshooter it tells me the following:

SELinux is preventing systemd-logind from search access on the directory /.

***** Plugin file (65.7 confidence) suggests ******************************

If you think this is caused by a badly mislabeled machine.
Then you need to fully relabel.
Do
touch /.autorelabel; reboot

Should I go ahead and do the autorelabel? Is it completely safe to do so and should I know anything else before doing it?

This is a choice you should make:

 dnf4 info selinux-policy
Copr repo for openvpn3 owned by dsommers                                      5.5 kB/s | 5.0 kB     00:00    
Copr repo for dogfood owned by gbcox                                           13 kB/s |  12 kB     00:00    
Copr repo for conky-manager2 owned by geraldosimiao                           2.3 kB/s | 2.3 kB     00:00    
Copr repo for grub-btrfs owned by kylegospo                                   1.4 kB/s | 1.2 kB     00:00    
Brave Browser                                                                 137 kB/s |  64 kB     00:00    
Fedora 44 - x86_64                                                            3.9 MB/s |  35 MB     00:09    
Fedora 44 openh264 (From Cisco) - x86_64                                      425  B/s | 1.3 kB     00:03    
Fedora 44 - x86_64 - Updates                                                  3.5 MB/s |  11 MB     00:03    
RPM Fusion for Fedora 44 - Free                                                97 kB/s | 144 kB     00:01    
RPM Fusion for Fedora 44 - Free - Updates                                      42 kB/s |  66 kB     00:01    
RPM Fusion for Fedora 44 - Nonfree                                             40 kB/s |  86 kB     00:02    
RPM Fusion for Fedora 44 - Nonfree - Updates                                   13 kB/s |  33 kB     00:02    
Installed Packages
History database cannot be created, using in-memory database instead: SQLite error on "/var/lib/dnf/history.sqlite": Open failed: unable to open database file
Name         : selinux-policy
Version      : 44.8
Release      : 1.fc44
Architecture : noarch
Size         : 32 k
Source       : selinux-policy-44.8-1.fc44.src.rpm
Repository   : @System
Summary      : SELinux policy configuration
URL          : https://github.com/fedora-selinux/selinux-policy
License      : GPL-2.0-or-later
Description  : SELinux core policy package.
             : Originally based off of reference policy,
             : the policy has been adjusted to provide support for Fedora.


It is wise to have a good back-up in place before hand. :slight_smile:

For a healthy system this should help if that is the problem.

sudo restorecon -Rv /

Best of Luck though. :wink:

Thank you for your help, the restorecon command seems to have worked!

That would normally be the first thing you should do. It quite often fixes problems like that.