selinux-policy/refpolicy/policy/modules/system/iptables.if

34 lines
914 B
Plaintext
Raw Normal View History

2005-05-02 19:24:29 +00:00
# Copyright (C) 2005 Tresys Technology, LLC
#######################################
#
# iptables_transition(domain)
#
define(`iptables_transition',`
requires_block_template(`$0'_depend)
2005-05-02 19:24:29 +00:00
allow $1 iptables_exec_t:file { getattr read execute };
allow $1 iptables_t:process transition;
type_transition $1 iptables_exec_t:file iptables_t;
dontaudit $1 iptables_t:process { noatsecure siginh rlimitinh };
')
define(`iptables_transition_depend',`
type iptables_t, iptables_exec_t;
class file { getattr read execute };
class process { transition noatsecure siginh rlimitinh };
')
#######################################
#
# iptables_execute(domain)
#
define(`iptables_execute',`
requires_block_template(`$0'_depend)
2005-05-02 19:24:29 +00:00
allow $1 iptables_exec_t:file { getattr read execute execute_no_trans };
')
define(`iptables_execute_depend',`
type iptables_t, iptables_exec_t;
class file { getattr read execute execute_no_trans };
')