This page was created to give a hand in creating SELinux-related bug reports with sufficient information to speed up the bug resolution.
Steps to take
1. Ensure audit is installed
rpm -q audit
2. Enable full auditing
- Open the
/etc/audit/rules.d/audit.rulesfile in an editor. - Remove the following line if it exists:
-a task,never
- Add the following line to the end of the file:
-w /etc/shadow -p w
- Restart the audit daemon using the legacy
servicecommand, or reboot the system:
$ sudo service auditd restart
3. Reproduce the issue
4. Gather denials
$ sudo ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts today
5. Reproduce the issue in SELinux permissive mode - one of the following options:
- run
setenforce 0 - add
enforcing=0to kernel command line and reboot - edit
/etc/selinux/configto containSELINUX=permissiveand reboot
6. Gather denials
$ sudo ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts today
7. Attach the ausearch commands output to bugzilla
8. Include reproducer steps, which configuration files need to be changed, and information about related packages, e.g.
rpm -q selinux-policy systemd glib2
9. State clearly what is the bug severity and whether it is a blocker
