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