ebd438
ebd438
module mariadb-server-galera 1.0;
ebd438
ebd438
require {
ebd438
    type mysqld_t;
ebd438
    type rsync_exec_t;
ebd438
    type anon_inodefs_t;
ebd438
    type proc_net_t;
ebd438
    type kerberos_port_t;
ebd438
    class file { read execute execute_no_trans getattr open };
ebd438
    class tcp_socket { name_bind name_connect };
ebd438
    class process { setpgid siginh rlimitinh noatsecure };
ebd438
}
ebd438
ebd438
# allow mysqld to run rsyncd
ebd438
allow mysqld_t self:process setpgid;
ebd438
allow mysqld_t rsync_exec_t:file { read execute execute_no_trans getattr open };
ebd438
allow mysqld_t anon_inodefs_t:file getattr;
ebd438
allow mysqld_t proc_net_t:file { read open };
ebd438
ebd438
# allow rsyncd to listen on port 4444
ebd438
allow mysqld_t kerberos_port_t:tcp_socket { name_bind name_connect };
ebd438