selinux-policy/policy/modules/system/ipsec.if
2006-12-12 20:08:08 +00:00

114 lines
2.2 KiB
Plaintext

## <summary>TCP/IP encryption</summary>
########################################
## <summary>
## Execute ipsec in the ipsec domain.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`ipsec_domtrans',`
gen_require(`
type ipsec_t, ipsec_exec_t;
')
domtrans_pattern($1,ipsec_exec_t,ipsec_t)
')
########################################
## <summary>
## Connect to IPSEC using a unix domain stream socket.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`ipsec_stream_connect',`
gen_require(`
type ipsec_t, ipsec_var_run_t;
')
files_search_pids($1)
stream_connect_pattern($1,ipsec_var_run_t,ipsec_var_run_t,ipsec_t)
')
########################################
## <summary>
## Get the attributes of an IPSEC key socket.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`ipsec_getattr_key_sockets',`
gen_require(`
type ipsec_t;
')
allow $1 ipsec_t:key_socket getattr;
')
########################################
## <summary>
## Execute the IPSEC management program in the caller domain.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`ipsec_exec_mgmt',`
gen_require(`
type ipsec_exec_t;
')
can_exec($1,ipsec_exec_t)
')
########################################
## <summary>
## Read the IPSEC configuration
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
## <rolecap/>
#
interface(`ipsec_read_config',`
gen_require(`
type ipsec_conf_file_t;
')
files_search_etc($1)
allow $1 ipsec_conf_file_t:file read_file_perms;
')
########################################
## <summary>
## Create, read, write, and delete the IPSEC pid files.
## </summary>
## <param name="domain">
## <summary>
## The type of the process performing this action.
## </summary>
## </param>
#
interface(`ipsec_manage_pid',`
gen_require(`
type ipsec_var_run_t;
')
files_search_pids($1)
manage_files_pattern($1,ipsec_var_run_t,ipsec_var_run_t)
')