2006-09-01 15:52:05 +00:00
|
|
|
## <summary>SELinux troubleshooting service</summary>
|
2007-02-16 23:01:42 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect to setroubleshootd over an unix stream socket.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`setroubleshoot_stream_connect',`
|
|
|
|
gen_require(`
|
|
|
|
type setroubleshootd_t, setroubleshoot_var_run_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_pids($1)
|
|
|
|
allow $1 setroubleshoot_var_run_t:sock_file write;
|
|
|
|
allow $1 setroubleshootd_t:unix_stream_socket connectto;
|
|
|
|
')
|
2007-09-04 18:57:58 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Dontaudit attempts to connect to setroubleshootd
|
|
|
|
## over an unix stream socket.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`setroubleshoot_dontaudit_stream_connect',`
|
|
|
|
gen_require(`
|
|
|
|
type setroubleshootd_t, setroubleshoot_var_run_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 setroubleshoot_var_run_t:sock_file write;
|
|
|
|
dontaudit $1 setroubleshootd_t:unix_stream_socket connectto;
|
|
|
|
')
|