Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/contrib/pegasus.if

61 lines
1.4 KiB
Text
Raw Normal View History

## <summary>The Open Group Pegasus CIM/WBEM Server.</summary>
######################################
## <summary>
## Creates types and rules for a basic
## openlmi init daemon domain.
## </summary>
## <param name="prefix">
## <summary>
## Prefix for the domain.
## </summary>
## </param>
#
template(`pegasus_openlmi_domain_template',`
gen_require(`
attribute pegasus_openlmi_domain;
type pegasus_t;
')
##############################
#
# Declarations
#
type pegasus_openlmi_$1_t, pegasus_openlmi_domain;
type pegasus_openlmi_$1_exec_t;
init_daemon_domain(pegasus_openlmi_$1_t, pegasus_openlmi_$1_exec_t)
##############################
#
# Local policy
#
domtrans_pattern(pegasus_t, pegasus_openlmi_$1_exec_t, pegasus_openlmi_$1_t)
allow pegasus_t pegasus_openlmi_$1_exec_t:file ioctl;
kernel_read_system_state(pegasus_openlmi_$1_t)
logging_send_syslog_msg(pegasus_openlmi_$1_t)
')
########################################
## <summary>
## Connect to pegasus over a unix stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`pegasus_stream_connect',`
gen_require(`
type pegasus_t, pegasus_var_run_t, pegasus_tmp_t;
')
files_search_pids($1)
stream_connect_pattern($1, pegasus_var_run_t, pegasus_var_run_t, pegasus_t)
stream_connect_pattern($1, pegasus_tmp_t, pegasus_tmp_t, pegasus_t)
')