From Fedora Project Wiki

How to report bugs related to SELinux

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.rules file 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 service command, 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=0 to kernel command line and reboot
  • edit /etc/selinux/config to contain SELINUX=permissive and 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

Links to other wiki documents