Skip to content

Instantly share code, notes, and snippets.

@louis89
Last active August 29, 2015 13:57
Show Gist options
  • Save louis89/9647601 to your computer and use it in GitHub Desktop.
Save louis89/9647601 to your computer and use it in GitHub Desktop.
SELinux policy allowing Apache web server to read a symbolic link at MySQL's default main data directory location (Useful to keep default configurations after moving MySQL's main data directory)
# @author Louis DaPrato <[email protected]>
module httpd_read_mysql_lnk_file 1.0;
require {
type mysqld_db_t;
type httpd_t;
class lnk_file read;
}
#============= httpd_t ==============
allow httpd_t mysqld_db_t:lnk_file read;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment