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

44 lines
857 B
Text
Raw Normal View History

## <summary>Policy for gridengine MPI jobs</summary>
######################################
## <summary>
## Creates types and rules for a basic
## sge domain.
## </summary>
## <param name="prefix">
## <summary>
## Prefix for the domain.
## </summary>
## </param>
#
template(`sge_basic_types_template',`
gen_require(`
attribute sge_domain;
')
type $1_t, sge_domain;
type $1_exec_t;
kernel_read_system_state($1_t)
')
########################################
## <summary>
## read/write sge_shepherd per tcp_socket
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`sge_rw_tcp_sockets',`
gen_require(`
type sge_shepherd_t;
type sge_job_ssh_t;
')
allow $1 sge_shepherd_t:tcp_socket rw_socket_perms;
allow $1 sge_job_ssh_t:tcp_socket rw_socket_perms;
')