trunk: remaining pieces for apcupsd module

This commit is contained in:
Chris PeBenito 2007-05-15 15:43:00 +00:00
parent 38d0cf1b8a
commit c412be6bef
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
policy_module(corenetwork,1.2.8) policy_module(corenetwork,1.2.9)
######################################## ########################################
# #
@ -60,6 +60,7 @@ network_port(afs_vl, udp,7003,s0)
network_port(amanda, udp,10080,s0, tcp,10080,s0, udp,10081,s0, tcp,10081,s0, tcp,10082,s0, tcp,10083,s0) network_port(amanda, udp,10080,s0, tcp,10080,s0, udp,10081,s0, tcp,10081,s0, tcp,10082,s0, tcp,10083,s0)
network_port(amavisd_recv, tcp,10024,s0) network_port(amavisd_recv, tcp,10024,s0)
network_port(amavisd_send, tcp,10025,s0) network_port(amavisd_send, tcp,10025,s0)
network_port(apcupsd, tcp,3551,s0, udp,3551,s0)
network_port(asterisk, tcp,1720,s0, udp,2427,s0, udp,2727,s0, udp,4569,s0, udp,5060,s0) network_port(asterisk, tcp,1720,s0, udp,2427,s0, udp,2727,s0, udp,4569,s0, udp,5060,s0)
network_port(auth, tcp,113,s0) network_port(auth, tcp,113,s0)
network_port(bgp, tcp,179,s0, udp,179,s0, tcp,2605,s0, udp,2605,s0) network_port(bgp, tcp,179,s0, udp,179,s0, tcp,2605,s0, udp,2605,s0)

View File

@ -1,5 +1,5 @@
policy_module(apcupsd,1.0.0) policy_module(apcupsd,1.0.1)
######################################## ########################################
# #
@ -24,6 +24,7 @@ files_pid_file(apcupsd_var_run_t)
# apcupsd local policy # apcupsd local policy
# #
allow apcupsd_t self:process signal;
allow apcupsd_t self:fifo_file rw_file_perms; allow apcupsd_t self:fifo_file rw_file_perms;
allow apcupsd_t self:unix_stream_socket create_stream_socket_perms; allow apcupsd_t self:unix_stream_socket create_stream_socket_perms;
allow apcupsd_t self:tcp_socket create_stream_socket_perms; allow apcupsd_t self:tcp_socket create_stream_socket_perms;
@ -43,8 +44,8 @@ corenet_tcp_sendrecv_generic_if(apcupsd_t)
corenet_tcp_sendrecv_all_nodes(apcupsd_t) corenet_tcp_sendrecv_all_nodes(apcupsd_t)
corenet_tcp_sendrecv_all_ports(apcupsd_t) corenet_tcp_sendrecv_all_ports(apcupsd_t)
corenet_tcp_bind_all_nodes(apcupsd_t) corenet_tcp_bind_all_nodes(apcupsd_t)
#corenet_tcp_bind_apcupsd_port(apcupsd_t) corenet_tcp_bind_apcupsd_port(apcupsd_t)
#corenet_sendrecv_apcupsd_server_packets(apcupsd_t) corenet_sendrecv_apcupsd_server_packets(apcupsd_t)
dev_rw_generic_usb_dev(apcupsd_t) dev_rw_generic_usb_dev(apcupsd_t)