selinux-refpolicy/strict/domains/program/ypbind.te
2005-09-12 21:40:56 +00:00

45 lines
1.3 KiB
Plaintext

#DESC Ypbind - NIS/YP
#
# Authors: Stephen Smalley <sds@epoch.ncsc.mil> and Timothy Fraser
# Russell Coker <russell@coker.com.au>
# X-Debian-Packages: nis
# Depends: portmap.te named.te
#
#################################
#
# Rules for the ypbind_t domain.
#
daemon_domain(ypbind)
tmp_domain(ypbind)
# Use capabilities.
allow ypbind_t self:capability { net_bind_service };
dontaudit ypbind_t self:capability net_admin;
# Use the network.
can_network(ypbind_t)
allow ypbind_t port_type:tcp_socket name_connect;
allow ypbind_t port_t:{ tcp_socket udp_socket } name_bind;
allow ypbind_t self:fifo_file rw_file_perms;
read_sysctl(ypbind_t)
# Send to portmap and initrc.
can_udp_send(ypbind_t, portmap_t)
can_udp_send(ypbind_t, initrc_t)
# Read and write /var/yp.
allow ypbind_t var_yp_t:dir rw_dir_perms;
allow ypbind_t var_yp_t:file create_file_perms;
allow initrc_t var_yp_t:dir { getattr read };
allow ypbind_t etc_t:file { getattr read };
allow ypbind_t self:{ unix_dgram_socket unix_stream_socket } create_socket_perms;
allow ypbind_t self:netlink_route_socket r_netlink_socket_perms;
allow ypbind_t reserved_port_t:{ tcp_socket udp_socket } name_bind;
dontaudit ypbind_t reserved_port_type:{ tcp_socket udp_socket } name_bind;
can_udp_send(initrc_t, ypbind_t)