Last active
August 29, 2015 13:57
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # @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