Chris PeBenito eac818
## <summary>SELinux troubleshooting service</summary>
Chris PeBenito 6b19be
Chris PeBenito 6b19be
########################################
Chris PeBenito 6b19be
## <summary>
Chris PeBenito 6b19be
##	Connect to setroubleshootd over an unix stream socket.
Chris PeBenito 6b19be
## </summary>
Chris PeBenito 6b19be
## <param name="domain">
Chris PeBenito 6b19be
##	<summary>
Chris PeBenito 6b19be
##	Domain allowed access.
Chris PeBenito 6b19be
##	</summary>
Chris PeBenito 6b19be
## </param>
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
interface(`setroubleshoot_stream_connect',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 6b19be
		type setroubleshootd_t, setroubleshoot_var_run_t;
Chris PeBenito 6b19be
	')
Chris PeBenito 6b19be
Chris PeBenito 6b19be
	files_search_pids($1)
Chris PeBenito 6b19be
	allow $1 setroubleshoot_var_run_t:sock_file write;
Chris PeBenito 6b19be
	allow $1 setroubleshootd_t:unix_stream_socket connectto;
Chris PeBenito 6b19be
')
Chris PeBenito 0a0b80
Chris PeBenito 0a0b80
########################################
Chris PeBenito 0a0b80
## <summary>
Chris PeBenito 0a0b80
##	Dontaudit attempts to connect to setroubleshootd
Chris PeBenito 0a0b80
##	over an unix stream socket.
Chris PeBenito 0a0b80
## </summary>
Chris PeBenito 0a0b80
## <param name="domain">
Chris PeBenito 0a0b80
##	<summary>
Chris PeBenito 0a0b80
##	Domain allowed access.
Chris PeBenito 0a0b80
##	</summary>
Chris PeBenito 0a0b80
## </param>
Chris PeBenito 0a0b80
#
Chris PeBenito 0a0b80
interface(`setroubleshoot_dontaudit_stream_connect',`
Chris PeBenito 0a0b80
	gen_require(`
Chris PeBenito 0a0b80
		type setroubleshootd_t, setroubleshoot_var_run_t;
Chris PeBenito 0a0b80
	')
Chris PeBenito 0a0b80
Chris PeBenito 0a0b80
	dontaudit $1 setroubleshoot_var_run_t:sock_file write;
Chris PeBenito 0a0b80
	dontaudit $1 setroubleshootd_t:unix_stream_socket connectto;
Chris PeBenito 0a0b80
')