SELinux, audit2why, audit2allow, and policy files

I recently encountered a permissions issue caused by SELinux. Some online sources suggested disabling SELinux, which seems like a bad idea. I used the audit2why and audit2allow commands to look more closely at the denied actions, and used audit2allow to modify the system SELinux policy to allow the actions.