|
Chris PeBenito |
73fbc7 |
## <summary>Policy for NIS (YP) servers and clients</summary>
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
########################################
|
|
Chris PeBenito |
73fbc7 |
## <summary>
|
|
Chris PeBenito |
73fbc7 |
## Use the ypbind service to access NIS services.
|
|
Chris PeBenito |
73fbc7 |
## </summary>
|
|
Chris PeBenito |
73fbc7 |
## <param name="domain">
|
|
Chris PeBenito |
73fbc7 |
## The type of the process performing this action.
|
|
Chris PeBenito |
73fbc7 |
## </param>
|
|
Chris PeBenito |
73fbc7 |
#
|
|
Chris PeBenito |
73fbc7 |
interface(`nis_use_ypbind',`
|
|
Chris PeBenito |
73fbc7 |
gen_require(`
|
|
Chris PeBenito |
73fbc7 |
type var_yp_t;
|
|
Chris PeBenito |
73fbc7 |
class dir r_dir_perms;
|
|
Chris PeBenito |
73fbc7 |
class lnk_file r_file_perms;
|
|
Chris PeBenito |
73fbc7 |
class file r_file_perms;
|
|
Chris PeBenito |
73fbc7 |
class capability net_bind_service;
|
|
Chris PeBenito |
73fbc7 |
class tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
73fbc7 |
class udp_socket create_socket_perms;
|
|
Chris PeBenito |
73fbc7 |
')
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
tunable_policy(`allow_ypbind',`
|
|
Chris PeBenito |
73fbc7 |
dontaudit $1 self:capability net_bind_service;
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
6e6156 |
allow $1 self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
6e6156 |
allow $1 self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
allow $1 var_yp_t:dir r_dir_perms;
|
|
Chris PeBenito |
73fbc7 |
allow $1 var_yp_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
73fbc7 |
allow $1 var_yp_t:file r_file_perms;
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
corenet_tcp_sendrecv_all_if($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_udp_sendrecv_all_if($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_raw_sendrecv_all_if($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_tcp_sendrecv_all_nodes($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_udp_sendrecv_all_nodes($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_raw_sendrecv_all_nodes($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_tcp_bind_all_nodes($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_udp_bind_all_nodes($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_tcp_sendrecv_all_ports($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_udp_sendrecv_all_ports($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_tcp_bind_generic_port($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_udp_bind_generic_port($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_tcp_bind_reserved_port($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_udp_bind_reserved_port($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_dontaudit_tcp_bind_all_reserved_ports($1)
|
|
Chris PeBenito |
73fbc7 |
corenet_dontaudit_udp_bind_all_reserved_ports($1)
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
',`
|
|
Chris PeBenito |
73fbc7 |
dontaudit $1 var_yp_t:dir search;
|
|
Chris PeBenito |
73fbc7 |
')
|
|
Chris PeBenito |
73fbc7 |
')
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
########################################
|
|
Chris PeBenito |
73fbc7 |
## <summary>
|
|
Chris PeBenito |
73fbc7 |
## Send UDP network traffic to NIS clients.
|
|
Chris PeBenito |
73fbc7 |
## </summary>
|
|
Chris PeBenito |
73fbc7 |
## <param name="domain">
|
|
Chris PeBenito |
73fbc7 |
## The type of the process performing this action.
|
|
Chris PeBenito |
73fbc7 |
## </param>
|
|
Chris PeBenito |
73fbc7 |
#
|
|
Chris PeBenito |
73fbc7 |
interface(`nis_list_var_yp',`
|
|
Chris PeBenito |
73fbc7 |
gen_require(`
|
|
Chris PeBenito |
73fbc7 |
type ypbind_t;
|
|
Chris PeBenito |
73fbc7 |
class dir r_dir_perms;
|
|
Chris PeBenito |
73fbc7 |
')
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
files_search_var($1)
|
|
Chris PeBenito |
73fbc7 |
allow $1 var_yp_t:dir r_dir_perms;
|
|
Chris PeBenito |
73fbc7 |
')
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
########################################
|
|
Chris PeBenito |
73fbc7 |
## <summary>
|
|
Chris PeBenito |
73fbc7 |
## Send UDP network traffic to NIS clients.
|
|
Chris PeBenito |
73fbc7 |
## </summary>
|
|
Chris PeBenito |
73fbc7 |
## <param name="domain">
|
|
Chris PeBenito |
73fbc7 |
## The type of the process performing this action.
|
|
Chris PeBenito |
73fbc7 |
## </param>
|
|
Chris PeBenito |
73fbc7 |
#
|
|
Chris PeBenito |
73fbc7 |
interface(`nis_udp_sendto_ypbind',`
|
|
Chris PeBenito |
73fbc7 |
gen_require(`
|
|
Chris PeBenito |
73fbc7 |
type ypbind_t;
|
|
Chris PeBenito |
73fbc7 |
class udp_socket { sendto recvfrom };
|
|
Chris PeBenito |
73fbc7 |
')
|
|
Chris PeBenito |
73fbc7 |
|
|
Chris PeBenito |
73fbc7 |
allow $1 ypbind_t:udp_socket sendto;
|
|
Chris PeBenito |
73fbc7 |
allow ypbind_t $1:udp_socket recvfrom;
|
|
Chris PeBenito |
73fbc7 |
')
|