## SELinux troubleshooting service
########################################
##
## Connect to setroubleshootd over an unix stream socket.
##
##
##
## Domain allowed access.
##
##
#
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;
')
########################################
##
## Dontaudit attempts to connect to setroubleshootd
## over an unix stream socket.
##
##
##
## Domain allowed access.
##
##
#
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;
')