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

73 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-11-16 20:56:24 +00:00
## <summary>Aide filesystem integrity checker</summary>
########################################
## <summary>
2008-12-03 19:16:20 +00:00
## Execute aide in the aide domain
2006-11-16 20:56:24 +00:00
## </summary>
## <param name="domain">
2008-12-03 19:16:20 +00:00
## <summary>
## Domain allowed to transition.
2008-12-03 19:16:20 +00:00
## </summary>
2006-11-16 20:56:24 +00:00
## </param>
#
interface(`aide_domtrans',`
gen_require(`
type aide_t, aide_exec_t;
')
2006-11-16 20:56:24 +00:00
2007-03-23 23:24:59 +00:00
corecmd_search_bin($1)
domtrans_pattern($1, aide_exec_t, aide_t)
2006-11-16 20:56:24 +00:00
')
########################################
## <summary>
## Execute aide programs in the AIDE domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
2006-11-16 20:56:24 +00:00
## </summary>
## </param>
## <param name="role">
## <summary>
## The role to allow the AIDE domain.
## </summary>
## </param>
## <rolecap/>
2006-11-16 20:56:24 +00:00
#
interface(`aide_run',`
gen_require(`
type aide_t;
')
aide_domtrans($1)
role $2 types aide_t;
')
2008-02-18 18:44:40 +00:00
########################################
## <summary>
## All of the rules required to administrate
## an aide environment
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`aide_admin',`
gen_require(`
type aide_t, aide_db_t, aide_log_t;
')
allow $1 aide_t:process { ptrace signal_perms };
ps_process_pattern($1, aide_t)
files_list_etc($1)
2008-11-11 16:38:34 +00:00
admin_pattern($1, aide_db_t)
2008-02-18 18:44:40 +00:00
logging_list_logs($1)
2008-11-11 16:38:34 +00:00
admin_pattern($1, aide_log_t)
2008-02-18 18:44:40 +00:00
')