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