|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
10abae |
#######################################
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
10abae |
# netutils_transition(domain)
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
10abae |
define(`netutils_transition',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$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 |
10abae |
define(`netutils_transition_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 |
10abae |
# netutils_execute(domain)
|
|
Chris PeBenito |
10abae |
#
|
|
Chris PeBenito |
10abae |
define(`netutils_execute',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$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 |
10abae |
define(`netutils_execute_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 |
')
|