Skip to content

Instantly share code, notes, and snippets.

@swaldman
Created December 23, 2015 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swaldman/1dbb10b77df23219eac8 to your computer and use it in GitHub Desktop.
Save swaldman/1dbb10b77df23219eac8 to your computer and use it in GitHub Desktop.
semanage
[root@tickle1 /]# semanage fcontext -a -e /usr/share/nginx/html /home/web/fallback
[root@tickle1 /]# restorecon -vR /home/web/fallback
restorecon reset /home/web/fallback context system_u:object_r:user_home_t:s0->system_u:object_r:httpd_sys_content_t:s0
restorecon reset /home/web/fallback/index.html context system_u:object_r:user_home_t:s0->system_u:object_r:httpd_sys_content_t:s0
restorecon reset /home/web/fallback/somefile context system_u:object_r:user_home_t:s0->system_u:object_r:httpd_sys_content_t:s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment