2008-05-26 17:48:56 +00:00
|
|
|
## <summary>Service for reporting kernel oopses to kerneloops.org</summary>
|
2008-05-26 17:47:49 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute a domain transition to run kerneloops.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed to transition.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`kerneloops_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type kerneloops_t;
|
|
|
|
type kerneloops_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
domtrans_pattern($1, kerneloops_exec_t, kerneloops_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive messages from
|
|
|
|
## kerneloops over dbus.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`kerneloops_dbus_chat',`
|
|
|
|
gen_require(`
|
|
|
|
type kerneloops_t;
|
|
|
|
class dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 kerneloops_t:dbus send_msg;
|
|
|
|
allow kerneloops_t $1:dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## dontaudit attempts to Send and receive messages from
|
|
|
|
## kerneloops over dbus.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`kerneloops_dontaudit_dbus_chat',`
|
|
|
|
gen_require(`
|
|
|
|
type kerneloops_t;
|
|
|
|
class dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 kerneloops_t:dbus send_msg;
|
|
|
|
dontaudit kerneloops_t $1:dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## All of the rules required to administrate
|
|
|
|
## an kerneloops environment
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
|
|
|
## The role to be allowed to manage the kerneloops domain.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="terminal">
|
|
|
|
## <summary>
|
|
|
|
## The type of the user terminal.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <rolecap/>
|
|
|
|
#
|
|
|
|
interface(`kerneloops_admin',`
|
|
|
|
gen_require(`
|
|
|
|
type kerneloops_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 kerneloops_t:process { ptrace signal_perms };
|
|
|
|
ps_process_pattern($1, kerneloops_t)
|
|
|
|
')
|