Skip to content

Instantly share code, notes, and snippets.

@Sevaarcen
Created May 2, 2021 01:25
Show Gist options
  • Save Sevaarcen/b3e7a762c677316780c4700624d20e7d to your computer and use it in GitHub Desktop.
Save Sevaarcen/b3e7a762c677316780c4700624d20e7d to your computer and use it in GitHub Desktop.
Fixes selinux permissions to allow all previously-denied nginx permissions
#!/bin/bash
sudo grep nginx /var/log/audit/audit.log | grep denied | audit2allow -M nginx_local
sudo semodule -i nginx_local.pp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment