Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Set SELinux Policy
- debug: semanage -i - <<END
- fcontext -a -t mysqld_etc_t /chroot/mysql/etc/my\.cnf
- fcontext -a -t mysqld_etc_t /chroot/mysql/etc/rc\.d/init\.d/mysqld
- fcontext -a -t mysqld_safe_exec_t /chroot/mysql/usr/bin/mysqld_safe
- fcontext -a -t mysqld_exec_t /chroot/mysql/usr/libexec/mysqld
- fcontext -a -t mysqld_db_t /chroot/mysql/var/lib/mysql(/.*)?
- fcontext -a -t mysqld_var_run_t /chroot/mysql/var/lib/mysql/mysql\.sock
- fcontext -a -t mysqld_log_t /chroot/mysql/var/log/mysql.*
- fcontext -a -t mysqld_var_run_t /chroot/mysql/var/run/mysqld(/.*)?
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement