Hi there,
I have a problem with my current fedora.
My desktop freezes and I run a killall -HUP gnome-shell
to be able to continue to work.
This works.
After the system is responsible again, I discover this SELinux alert:
SELinux is preventing login from getattr access on the filesystem /dev/shm.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that login should be allowed getattr access on the shm filesystem by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:ausearch -c ‘login’ --raw | audit2allow -M my-login
semodule -X 300 -i my-login.pp
Additional Information:
Source Context system_u:system_r:local_login_t:s0-s0:c0.c1023
Target Context system_u:object_r:tmpfs_t:s0
Target Objects /dev/shm [ filesystem ]
Source login
Source Path login
Port
Host xxx
Source RPM Packages
Target RPM Packages
SELinux Policy RPM selinux-policy-targeted-3.14.5-45.fc32.noarch
Local Policy RPM selinux-policy-targeted-3.14.5-45.fc32.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name precision
Platform Linux xxx 5.9.11-100.fc32.x86_64 #1 SMP Tue
Nov 24 19:16:53 UTC 2020 x86_64 x86_64
Alert Count 8
First Seen 2020-11-01 09:55:36 CET
Last Seen 2020-12-10 12:08:06 CET
Local ID 0455cc3c-28fd-4ede-b7d1-b4d823a21ef5Raw Audit Messages
type=AVC msg=audit(1607598486.668:2330): avc: denied { getattr } for pid=153936 comm=“login” name="/" dev=“tmpfs” ino=1 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=0Hash: login,local_login_t,tmpfs_t,filesystem,getattr
What is the login process doing there? Is it legit to allow it?
Another question: Is this really related to the freeze? How can I check this hypothesis.
Best regards
Benjamin