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