|
Chris PeBenito |
10abae |
# Copyright (C) 2005 Tresys Technology, LLC
|
|
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 |
10abae |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
10abae |
allow $1 netutils_exec_t:file { getattr read execute };
|
|
Chris PeBenito |
10abae |
allow $1 netutils_t:process transition;
|
|
Chris PeBenito |
10abae |
type_transition $1 netutils_exec_t:process netutils_t;
|
|
Chris PeBenito |
10abae |
dontaudit $1 netutils_t:process { noatsecure siginh rlimitinh };
|
|
Chris PeBenito |
4bf4ed |
allow $1 netutils_t:fd use;
|
|
Chris PeBenito |
4bf4ed |
allow netutils_t $1:fd use;
|
|
Chris PeBenito |
4bf4ed |
allow netutils_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
4bf4ed |
allow netutils_t $1:process sigchld;
|
|
Chris PeBenito |
10abae |
')
|
|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
10abae |
define(`netutils_transition_depend',`
|
|
Chris PeBenito |
10abae |
type netutils_t, netutils_exec_t;
|
|
Chris PeBenito |
10abae |
class file { getattr read execute };
|
|
Chris PeBenito |
4bf4ed |
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
Chris PeBenito |
4bf4ed |
class fd use;
|
|
Chris PeBenito |
4bf4ed |
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 |
10abae |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
10abae |
allow $1 netutils_exec_t:file { getattr read execute execute_no_trans };
|
|
Chris PeBenito |
10abae |
')
|
|
Chris PeBenito |
10abae |
|
|
Chris PeBenito |
10abae |
define(`netutils_execute_depend',`
|
|
Chris PeBenito |
10abae |
type netutils_exec_t;
|
|
Chris PeBenito |
10abae |
class file { getattr read execute execute_no_trans };
|
|
Chris PeBenito |
10abae |
')
|