Ubuntu - SELinux - Configuring SELinux to log warnings instead of block

You can also configure SELinux to give you a warning message instead of actually prohibiting the action.

This known as permissive mode.

To change SELinux's behavior to permissive mode you need to edit the configuration file.

On Fedora and RHEL systems that file is located at /etc/selinux/config.

You need to change the SELINUX option to permissive like so:

/etc/selinux/config
SELINUX=permissive

Note that these changes will not take effect until the system is rebooted, which is why the first section comes in handy on a system you either cannot or do not want to reboot right now.