Blame refpolicy/policy/modules/admin/netutils.if
|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
10abae |
#######################################
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
c9428d |
# netutils_domtrans(domain)
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
c9428d |
define(`netutils_domtrans',`
|
|
Chris PeBenito |
fa7bea |
gen_require(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
dc67f7 |
allow $1 netutils_exec_t:file rx_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 netutils_t:process transition;
|
|
Chris PeBenito |
0c73cd |
type_transition $1 netutils_exec_t:process netutils_t;
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 netutils_t:process { noatsecure siginh rlimitinh };
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 netutils_t:fd use;
|
|
Chris PeBenito |
0c73cd |
allow netutils_t $1:fd use;
|
|
Chris PeBenito |
0c73cd |
allow netutils_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow netutils_t $1:process sigchld;
|
|
Chris PeBenito |
10abae |
')
|
|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
c9428d |
define(`netutils_domtrans_depend',`
|
|
Chris PeBenito |
0c73cd |
type netutils_t, netutils_exec_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
dc67f7 |
class file rx_file_perms;
|
|
Chris PeBenito |
0c73cd |
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
Chris PeBenito |
0c73cd |
class fd use;
|
|
Chris PeBenito |
0c73cd |
class fifo_file rw_file_perms;
|
|
Chris PeBenito |
10abae |
')
|
|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
10abae |
#######################################
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
c9428d |
# netutils_exec(domain)
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
c9428d |
define(`netutils_exec',`
|
|
Chris PeBenito |
fa7bea |
gen_require(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
dc67f7 |
can_exec($1,netutils_exec_t)
|
|
Chris PeBenito |
dc67f7 |
|
|
Chris PeBenito |
10abae |
')
|
|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
c9428d |
define(`netutils_exec_depend',`
|
|
Chris PeBenito |
0c73cd |
type netutils_exec_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class file { getattr read execute execute_no_trans };
|
|
Chris PeBenito |
10abae |
')
|