Message in Cockpit about an unclean shutdown. When I checked the logs I see this message. My question, should umount be allowed unmount access on the filesystem by default?
SELinux is preventing umount from unmount access on the filesystem .
***** Plugin catchall (100. confidence) suggests **************************
If you believe that umount should be allowed unmount access on the 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 ‘umount’ --raw | audit2allow -M my-umount
semodule -X 300 -i my-umount.pp
@Rocinante:
I suspect that, for whatever reason, your system’s SELinux Policy hasn’t been applied to the complete directory tree – including any mount-points that may well have.
You possibly need to take a look at the “semanage-fcontext” man page and especially the “EXAMPLE” near the end of that man page.
There’s a magic command to ensure that, the current openSUSE SELinux Policy has been correctly applied to all the files in any particular directory tree –
# restorecon -R -F -v /<*directory path*>
If, you have a small system, then you can apply the SELinux Policy to the top level directory ‘/’ but, in all other cases you need to follow this openSUSE Troubleshooting Portal advice:
<openSUSE Portal:SELinux/Troubleshooting>
Thank you for the information and the link. I followed the troubleshooting guide and no more error messages for SELinux in Cockpit.
Brilliant!
@Rocinante:
BTW, I’ve just now, today, noticed what “restorecon_xattr” does …
The man (8) gives all the details you’ll need:
restorecon_xattr - manage security.sehash extended attribute entries added by setfiles(8) or restorecon(8).
Except for one tip:
# restorecon_xattr -r /??? | grep ' No Match'
# restorecon_xattr -rd /??? | grep ' No Match'
Hi, all. The number of log entries for SELinux in Cockpit, has reappeared. a whole long list of them. I thought the solution had been found, but this only lasted a few days.
I assume that I need to file a bug report for this?