Blame targeted/macros/program/ypbind_macros.te
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
define(`uncond_can_ypbind', `
|
|
Chris PeBenito |
ab58ad |
can_network($1)
|
|
Chris PeBenito |
ab58ad |
r_dir_file($1,var_yp_t)
|
|
Chris PeBenito |
ab58ad |
allow $1 { reserved_port_t port_t }:{ tcp_socket udp_socket } name_bind;
|
|
Chris PeBenito |
ab58ad |
allow $1 { portmap_port_t reserved_port_t port_t }:tcp_socket name_connect;
|
|
Chris PeBenito |
ab58ad |
dontaudit $1 self:capability net_bind_service;
|
|
Chris PeBenito |
ab58ad |
dontaudit $1 reserved_port_type:tcp_socket name_connect;
|
|
Chris PeBenito |
ab58ad |
dontaudit $1 reserved_port_type:{ tcp_socket udp_socket } name_bind;
|
|
Chris PeBenito |
ab58ad |
')
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
define(`can_ypbind', `
|
|
Chris PeBenito |
ab58ad |
ifdef(`ypbind.te', `
|
|
Chris PeBenito |
ab58ad |
if (allow_ypbind) {
|
|
Chris PeBenito |
ab58ad |
uncond_can_ypbind($1)
|
|
Chris PeBenito |
ab58ad |
} else {
|
|
Chris PeBenito |
ab58ad |
dontaudit $1 var_yp_t:dir search;
|
|
Chris PeBenito |
ab58ad |
}
|
|
Chris PeBenito |
ab58ad |
') dnl ypbind.te
|
|
Chris PeBenito |
ab58ad |
') dnl can_ypbind
|