Chris PeBenito 6b9383
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito 6b9383
Chris PeBenito 6b9383
#######################################
Chris PeBenito 6b9383
#
Chris PeBenito 6b9383
# iptables_transition(domain)
Chris PeBenito 6b9383
#
Chris PeBenito 6b9383
define(`iptables_transition',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 6b9383
allow $1 iptables_exec_t:file { getattr read execute };
Chris PeBenito 6b9383
allow $1 iptables_t:process transition;
Chris PeBenito 6b9383
type_transition $1 iptables_exec_t:file iptables_t;
Chris PeBenito 6b9383
dontaudit $1 iptables_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 6b9383
')
Chris PeBenito 6b9383
Chris PeBenito 6b9383
define(`iptables_transition_depend',`
Chris PeBenito 6b9383
type iptables_t, iptables_exec_t;
Chris PeBenito 6b9383
class file { getattr read execute };
Chris PeBenito 6b9383
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 6b9383
')
Chris PeBenito 6b9383
Chris PeBenito 6b9383
#######################################
Chris PeBenito 6b9383
#
Chris PeBenito 6b9383
# iptables_execute(domain)
Chris PeBenito 6b9383
#
Chris PeBenito 6b9383
define(`iptables_execute',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 6b9383
allow $1 iptables_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 6b9383
')
Chris PeBenito 6b9383
Chris PeBenito 6b9383
define(`iptables_execute_depend',`
Chris PeBenito 6b9383
type iptables_t, iptables_exec_t;
Chris PeBenito 6b9383
class file { getattr read execute execute_no_trans };
Chris PeBenito 6b9383
')