4 ms·
> The advice to disable SELinux... time to lay that myth to bed. I think we agree, and Fedora / Red Hat have done great work setting up great defaults. But wh
by AaronFriel 5y ago
> The advice to disable SELinux... time to lay that myth to bed.
I think we agree, and Fedora / Red Hat have done great work setting up great defaults.
But when a user encounters an issue with SELinux, the lack of feedback mechanisms to help them onto a better path results in them finding that advice.
- MonaroVXR 5y agoFedora literally gives you a notification and you can take action (Me a as novice Linux user)
- AaronFriel 5y agoThat's fantastic for Fedora desktop users. I don't expect you'd know, but is there a way to get the same quality of information via a CLI command?
- Too 5y agogrep denied /var/log/audit/* On some systems the avc violations also get printed in dmesg. If violations block your whole system from even running, you can enable permissive mode, this only logs violations without enforcing them. As others already mentioned, turning violation logs into allow rules can be done with audit2allow. Wouldn’t recommend blindly using that though as the generated rules are always either too narrow or too wide, just use it as a guideline.
- yrro 5y agoFYI, "ausearch -i -ts recent -m avc" gives you SELinux violations from the last 10 minutes in slightly more readable form.
- MonaroVXR 5y agoI think there is, I's been a long time since I had issues with SELinux. To be honest I have no idea how the GUI works. I do everything with CLI. From the top of my head, I don't know. But this might help: https://wiki.archlinux.org/title/SELinux https://wiki.archlinux.org/title/SELinux