Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/gssproxy.if

218 lines
4.4 KiB
Text
Raw Permalink Normal View History

## <summary>policy for gssproxy</summary>
########################################
## <summary>
## Execute TEMPLATE in the gssproxy domin.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`gssproxy_domtrans',`
gen_require(`
type gssproxy_t, gssproxy_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, gssproxy_exec_t, gssproxy_t)
')
########################################
## <summary>
## Search gssproxy lib directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_search_lib',`
gen_require(`
type gssproxy_var_lib_t;
')
allow $1 gssproxy_var_lib_t:dir search_dir_perms;
files_search_var_lib($1)
')
########################################
## <summary>
## Read gssproxy lib files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_read_lib_files',`
gen_require(`
type gssproxy_var_lib_t;
')
files_search_var_lib($1)
read_files_pattern($1, gssproxy_var_lib_t, gssproxy_var_lib_t)
')
########################################
## <summary>
## Manage gssproxy lib files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_manage_lib_files',`
gen_require(`
type gssproxy_var_lib_t;
')
files_search_var_lib($1)
manage_files_pattern($1, gssproxy_var_lib_t, gssproxy_var_lib_t)
')
########################################
## <summary>
## Manage gssproxy lib directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_manage_lib_dirs',`
gen_require(`
type gssproxy_var_lib_t;
')
files_search_var_lib($1)
manage_dirs_pattern($1, gssproxy_var_lib_t, gssproxy_var_lib_t)
')
########################################
## <summary>
## Read gssproxy PID files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_read_pid_files',`
gen_require(`
type gssproxy_var_run_t;
')
files_search_pids($1)
read_files_pattern($1, gssproxy_var_run_t, gssproxy_var_run_t)
')
########################################
## <summary>
## Execute gssproxy server in the gssproxy domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`gssproxy_systemctl',`
gen_require(`
type gssproxy_t;
type gssproxy_unit_file_t;
')
systemd_exec_systemctl($1)
init_reload_services($1)
allow $1 gssproxy_unit_file_t:file read_file_perms;
allow $1 gssproxy_unit_file_t:service manage_service_perms;
ps_process_pattern($1, gssproxy_t)
')
########################################
## <summary>
## Connect to gssproxy over an unix
## domain stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_stream_connect',`
gen_require(`
type gssproxy_t, gssproxy_var_run_t, gssproxy_var_lib_t;
')
files_search_pids($1)
stream_connect_pattern($1, gssproxy_var_run_t, gssproxy_var_run_t, gssproxy_t)
stream_connect_pattern($1, gssproxy_var_lib_t, gssproxy_var_lib_t, gssproxy_t)
')
########################################
## <summary>
## All of the rules required to administrate
## an gssproxy environment
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`gssproxy_admin',`
gen_require(`
type gssproxy_t;
type gssproxy_var_lib_t;
type gssproxy_var_run_t;
type gssproxy_unit_file_t;
')
allow $1 gssproxy_t:process { ptrace signal_perms };
ps_process_pattern($1, gssproxy_t)
files_search_var_lib($1)
admin_pattern($1, gssproxy_var_lib_t)
files_search_pids($1)
admin_pattern($1, gssproxy_var_run_t)
gssproxy_systemctl($1)
admin_pattern($1, gssproxy_unit_file_t)
allow $1 gssproxy_unit_file_t:service all_service_perms;
optional_policy(`
systemd_passwd_agent_exec($1)
systemd_read_fifo_file_passwd_run($1)
')
')
########################################
## <summary>
## Read and write to svirt_image devices.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`gssproxy_noatsecure',`
gen_require(`
type gssproxy_t;
')
allow $1 gssproxy_t:process { noatsecure rlimitinh };
')