Skip to content

Instantly share code, notes, and snippets.

@louis89
Last active August 29, 2015 13:57
Show Gist options
  • Save louis89/9647477 to your computer and use it in GitHub Desktop.
Save louis89/9647477 to your computer and use it in GitHub Desktop.
SELinux policy to allow moving MySQL's main data directory to Linux users home directory
# @author Louis DaPrato <[email protected]>
module mysql_home_root_t 1.0;
require {
type mysqld_safe_t;
type mysqld_t;
type home_root_t;
class dir { search open read getattr };
}
#============= mysqld_safe_t ==============
allow mysqld_safe_t home_root_t : dir { search read open getattr };
#============= mysqld_t ==============
allow mysqld_t home_root_t : dir { search read open getattr };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment