Skip to content

Instantly share code, notes, and snippets.

@novalagung
Last active January 22, 2020 05:38
Show Gist options
  • Save novalagung/054cfe3ba9cafb729321bbf3c7c8839c to your computer and use it in GitHub Desktop.
Save novalagung/054cfe3ba9cafb729321bbf3c7c8839c to your computer and use it in GitHub Desktop.
# list stuff with it's security context
ls -lrtZ
# then adjust the security context using chcon
sudo chcon -v --user=system_u ride-dev
sudo chcon -R -v --type=httpd_sys_content_t ride-dev/*
semanage port -l | grep http
semanage port -a -t http_port_t -p tcp 8085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment