selinux-policy/refpolicy/policy/modules/admin/netutils.if

45 lines
971 B
Plaintext
Raw Normal View History

2005-05-25 19:52:21 +00:00
#######################################
#
2005-06-13 17:35:46 +00:00
# netutils_domtrans(domain)
2005-05-25 19:52:21 +00:00
#
2005-06-13 17:35:46 +00:00
define(`netutils_domtrans',`
gen_require(`$0'_depend)
2005-06-09 17:21:52 +00:00
allow $1 netutils_exec_t:file rx_file_perms;
allow $1 netutils_t:process transition;
type_transition $1 netutils_exec_t:process netutils_t;
dontaudit $1 netutils_t:process { noatsecure siginh rlimitinh };
allow $1 netutils_t:fd use;
allow netutils_t $1:fd use;
allow netutils_t $1:fifo_file rw_file_perms;
allow netutils_t $1:process sigchld;
2005-05-25 19:52:21 +00:00
')
2005-06-13 17:35:46 +00:00
define(`netutils_domtrans_depend',`
type netutils_t, netutils_exec_t;
2005-06-09 17:21:52 +00:00
class file rx_file_perms;
class process { transition noatsecure siginh rlimitinh sigchld };
class fd use;
class fifo_file rw_file_perms;
2005-05-25 19:52:21 +00:00
')
#######################################
#
2005-06-13 17:35:46 +00:00
# netutils_exec(domain)
2005-05-25 19:52:21 +00:00
#
2005-06-13 17:35:46 +00:00
define(`netutils_exec',`
gen_require(`$0'_depend)
2005-06-09 17:21:52 +00:00
can_exec($1,netutils_exec_t)
2005-05-25 19:52:21 +00:00
')
2005-06-13 17:35:46 +00:00
define(`netutils_exec_depend',`
type netutils_exec_t;
class file { getattr read execute execute_no_trans };
2005-05-25 19:52:21 +00:00
')