Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. - name: Set SELinux Policy
  2. debug: semanage -i - <<END
  3. fcontext -a -t mysqld_etc_t /chroot/mysql/etc/my\.cnf
  4. fcontext -a -t mysqld_etc_t /chroot/mysql/etc/rc\.d/init\.d/mysqld
  5. fcontext -a -t mysqld_safe_exec_t /chroot/mysql/usr/bin/mysqld_safe
  6. fcontext -a -t mysqld_exec_t /chroot/mysql/usr/libexec/mysqld
  7. fcontext -a -t mysqld_db_t /chroot/mysql/var/lib/mysql(/.*)?
  8. fcontext -a -t mysqld_var_run_t /chroot/mysql/var/lib/mysql/mysql\.sock
  9. fcontext -a -t mysqld_log_t /chroot/mysql/var/log/mysql.*
  10. fcontext -a -t mysqld_var_run_t /chroot/mysql/var/run/mysqld(/.*)?
  11. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement