Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split-off EPMD-related rules #16

Open
wants to merge 2 commits into
base: rawhide
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ejabberd.te
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ auth_use_nsswitch(ejabberd_t)
corecmd_exec_bin(ejabberd_t)
corecmd_exec_shell(ejabberd_t)

corenet_tcp_bind_epmd_port(ejabberd_t)
epmd_query(ejabberd_t)

corenet_tcp_bind_generic_node(ejabberd_t)
corenet_tcp_bind_generic_port(ejabberd_t)
corenet_tcp_bind_jabber_client_port(ejabberd_t)
corenet_tcp_bind_jabber_interserver_port(ejabberd_t)
corenet_tcp_connect_epmd_port(ejabberd_t)
corenet_tcp_connect_generic_port(ejabberd_t)
corenet_tcp_connect_jabber_interserver_port(ejabberd_t)

Expand Down
12 changes: 12 additions & 0 deletions epmd.if
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
interface(`epmd_query',`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this change is needed.

gen_require(`
type epmd_port_t;
class tcp_socket { name_bind name_connect };
')

corenet_tcp_bind_epmd_port($1)
corenet_tcp_connect_epmd_port($1)

corenet_sendrecv_epmd_client_packets($1)
corenet_tcp_sendrecv_epmd_port($1)
')
6 changes: 2 additions & 4 deletions rabbitmq.te
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,18 @@ corenet_tcp_bind_generic_node(rabbitmq_t)
corenet_tcp_connect_all_ephemeral_ports(rabbitmq_t)
corenet_tcp_bind_all_ephemeral_ports(rabbitmq_t)
corenet_sendrecv_amqp_server_packets(rabbitmq_t)
corenet_sendrecv_epmd_client_packets(rabbitmq_t)
corenet_tcp_sendrecv_amqp_port(rabbitmq_t)
corenet_tcp_bind_amqp_port(rabbitmq_t)
corenet_tcp_bind_epmd_port(rabbitmq_t)
corenet_tcp_bind_jabber_client_port(rabbitmq_t)
corenet_tcp_bind_jabber_interserver_port(rabbitmq_t)
corenet_tcp_bind_rabbitmq_port(rabbitmq_t)
corenet_tcp_connect_amqp_port(rabbitmq_t)
corenet_tcp_connect_epmd_port(rabbitmq_t)
corenet_tcp_connect_jabber_interserver_port(rabbitmq_t)
corenet_tcp_sendrecv_epmd_port(rabbitmq_t)
corenet_tcp_connect_http_port(rabbitmq_t)
corenet_tcp_connect_rabbitmq_port(rabbitmq_t)

epmd_query(rabbitmq_t)

domain_read_all_domains_state(rabbitmq_t)

auth_read_passwd(rabbitmq_t)
Expand Down