21 lines
563 B
Plaintext
21 lines
563 B
Plaintext
|
|
||
|
define(`uncond_can_ypbind', `
|
||
|
can_network($1)
|
||
|
r_dir_file($1,var_yp_t)
|
||
|
allow $1 { reserved_port_t port_t }:{ tcp_socket udp_socket } name_bind;
|
||
|
allow $1 { portmap_port_t reserved_port_t port_t }:tcp_socket name_connect;
|
||
|
dontaudit $1 self:capability net_bind_service;
|
||
|
dontaudit $1 reserved_port_type:tcp_socket name_connect;
|
||
|
dontaudit $1 reserved_port_type:{ tcp_socket udp_socket } name_bind;
|
||
|
')
|
||
|
|
||
|
define(`can_ypbind', `
|
||
|
ifdef(`ypbind.te', `
|
||
|
if (allow_ypbind) {
|
||
|
uncond_can_ypbind($1)
|
||
|
} else {
|
||
|
dontaudit $1 var_yp_t:dir search;
|
||
|
}
|
||
|
') dnl ypbind.te
|
||
|
') dnl can_ypbind
|