Skip to content

Instantly share code, notes, and snippets.

@boywijnmaalen
Last active April 9, 2018 05:05
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 boywijnmaalen/c7203bdbecf888f246c5a9df5e72249b to your computer and use it in GitHub Desktop.
Save boywijnmaalen/c7203bdbecf888f246c5a9df5e72249b to your computer and use it in GitHub Desktop.
SeLinux
# SeLinux doesn't like if files are moved from one place to another.
# if were to copy the file than SeLinux will have no problem with it whatsoever.
# If you do run into issues;
// will give you overview of all SeLinux permissions
// files need to match `httpd_sys_content_t`
$ ls -lZ
// I'm not that familiar with SeLinux BUT here is way to fix the permission for a file
$ mv <filename> /tmp
$ cp /tmp/<filename> .
$ chown apache: <filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment