Chris PeBenito bd202f
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito bd202f
Chris PeBenito bd202f
########################################
Chris PeBenito bd202f
#
Chris PeBenito 1e5c2a
# sysnetwork_dhcpc_transition(domain)
Chris PeBenito 1e5c2a
#
Chris PeBenito 1e5c2a
define(`sysnetwork_dhcpc_transition',`
Chris PeBenito 1e5c2a
requires_block_template(`$0'_depend)
Chris PeBenito 1e5c2a
allow $1 dhcpc_exec_t:file { getattr read execute };
Chris PeBenito 1e5c2a
allow $1 dhcpc_t:process transition;
Chris PeBenito e7fcdc
type_transition $1 dhcpc_exec_t:process dhcpc_t;
Chris PeBenito 1e5c2a
dontaudit $1 dhcpc_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 1e5c2a
')
Chris PeBenito 1e5c2a
Chris PeBenito 1e5c2a
define(`sysnetwork_dhcpc_transition_depend',`
Chris PeBenito 1e5c2a
type dhcpc_t, dhcpc_exec_t;
Chris PeBenito 1e5c2a
class file { getattr read execute };
Chris PeBenito 1e5c2a
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 1e5c2a
')
Chris PeBenito 1e5c2a
Chris PeBenito daa0e0
#######################################
Chris PeBenito daa0e0
## <interface name="sysnetwork_ifconfig_transition">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Execute ifconfig in the ifconfig domain.
Chris PeBenito daa0e0
##	</description>
Chris PeBenito daa0e0
##	<parameter name="domain">
Chris PeBenito daa0e0
##		The type of the process performing this action.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito daa0e0
##	<infoflow type="write" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito bd202f
#
Chris PeBenito bd202f
define(`sysnetwork_ifconfig_transition',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito bd202f
allow $1 ifconfig_exec_t:file { getattr read execute };
Chris PeBenito bd202f
allow $1 ifconfig_t:process transition;
Chris PeBenito e7fcdc
type_transition $1 ifconfig_exec_t:process ifconfig_t;
Chris PeBenito bd202f
dontaudit $1 ifconfig_t:process { noatsecure siginh rlimitinh };
Chris PeBenito bd202f
')
Chris PeBenito bd202f
Chris PeBenito bd202f
define(`sysnetwork_ifconfig_transition_depend',`
Chris PeBenito bd202f
type ifconfig_t, ifconfig_exec_t;
Chris PeBenito bd202f
class file { getattr read execute };
Chris PeBenito bd202f
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito bd202f
')
Chris PeBenito bd202f
Chris PeBenito 549180
########################################
Chris PeBenito daa0e0
## <interface name="sysnetwork_ifconfig_transition_add_role_use_terminal">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Execute ifconfig in the ifconfig domain, and
Chris PeBenito daa0e0
##		allow the specified role the ifconfig domain,
Chris PeBenito daa0e0
##		and use the caller's terminal.
Chris PeBenito daa0e0
##	</description>
Chris PeBenito daa0e0
##	<parameter name="domain">
Chris PeBenito daa0e0
##		The type of the process performing this action.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito daa0e0
##	<parameter name="role">
Chris PeBenito daa0e0
##		The role to be allowed the ifconfig domain.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito daa0e0
##	<parameter name="terminal">
Chris PeBenito daa0e0
##		The type of the terminal allow the ifconfig domain to use.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito daa0e0
##	<infoflow type="write" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito daa0e0
#
Chris PeBenito daa0e0
define(`sysnetwork_ifconfig_transition_add_role_use_terminal',`
Chris PeBenito daa0e0
requires_block_template(`$0'_depend)
Chris PeBenito daa0e0
sysnetwork_ifconfig_transition($1)
Chris PeBenito daa0e0
role $2 types ifconfig_t;
Chris PeBenito daa0e0
allow ifconfig_t $3:chr_file { getattr read write ioctl };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`sysnetwork_ifconfig_transition_add_role_use_terminal_depend',`
Chris PeBenito daa0e0
type ifconfig_t;
Chris PeBenito daa0e0
class chr_file { getattr read write ioctl };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
########################################
Chris PeBenito 549180
#
Chris PeBenito bd202f
# sysnetwork_read_network_config(domain)
Chris PeBenito 549180
#
Chris PeBenito 549180
define(`sysnetwork_read_network_config',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ec805
files_search_general_system_config_directory($1)
Chris PeBenito 549180
allow $1 net_conf_t:file { getattr read };
Chris PeBenito 549180
')
Chris PeBenito 549180
Chris PeBenito 549180
define(`sysnetwork_read_network_config_depend',`
Chris PeBenito 549180
type net_conf_t;
Chris PeBenito 549180
class file { getattr read };
Chris PeBenito 549180
')