selinux-policy/policy/modules/services/kerneloops.if

115 lines
2.4 KiB
Plaintext
Raw Normal View History

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>
2008-05-26 17:47:49 +00:00
## Domain allowed to transition.
## </summary>
2008-05-26 17:47:49 +00:00
## </param>
#
interface(`kerneloops_domtrans',`
gen_require(`
Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Syntax error. Squash me with 959aa527a5394d23b994ecf75347d2445106d0c4 Replace type and attributes statements by comma delimiters where possible. Syntax error. Squach me with 779a708452142d6e4ac2ba2a158f724782a03291 Replace type and attributes statements by comma delimiters where possible. Syntax error. Squash me with 89180ea115794aadddaa9b356ab1dfcdc9ff102
2010-09-20 10:09:09 +00:00
type kerneloops_t, kerneloops_exec_t;
2008-05-26 17:47:49 +00:00
')
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 to not audit.
2008-05-26 17:47:49 +00:00
## </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;
')
2009-06-30 19:27:21 +00:00
########################################
## <summary>
## Allow domain to manage kerneloops tmp files
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
2009-06-30 19:27:21 +00:00
## </summary>
## </param>
#
interface(`kerneloops_manage_tmp_files',`
gen_require(`
type kerneloops_tmp_t;
')
manage_files_pattern($1, kerneloops_tmp_t, kerneloops_tmp_t)
files_search_tmp($1)
')
2008-05-26 17:47:49 +00:00
########################################
## <summary>
## All of the rules required to administrate
## an kerneloops environment
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
2008-10-13 15:06:23 +00:00
## <param name="role">
## <summary>
## The role to be allowed to manage the kerneloops domain.
## </summary>
## </param>
2008-05-26 17:47:49 +00:00
## <rolecap/>
#
interface(`kerneloops_admin',`
gen_require(`
Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Replace type and attributes statements by comma delimiters where possible. Syntax error. Squash me with 959aa527a5394d23b994ecf75347d2445106d0c4 Replace type and attributes statements by comma delimiters where possible. Syntax error. Squach me with 779a708452142d6e4ac2ba2a158f724782a03291 Replace type and attributes statements by comma delimiters where possible. Syntax error. Squash me with 89180ea115794aadddaa9b356ab1dfcdc9ff102
2010-09-20 10:09:09 +00:00
type kerneloops_t, kerneloops_initrc_exec_t, kerneloops_tmp_t;
2008-05-26 17:47:49 +00:00
')
allow $1 kerneloops_t:process { ptrace signal_perms };
ps_process_pattern($1, kerneloops_t)
2008-10-13 15:06:23 +00:00
init_labeled_script_domtrans($1, kerneloops_initrc_exec_t)
domain_system_change_exemption($1)
role_transition $2 kerneloops_initrc_exec_t system_r;
allow $2 system_r;
2009-06-30 19:27:21 +00:00
files_list_tmp($1)
2009-06-30 19:27:21 +00:00
admin_pattern($1, kerneloops_tmp_t)
2008-05-26 17:47:49 +00:00
')