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

52 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-11-16 20:56:24 +00:00
## <summary>Aide filesystem integrity checker</summary>
########################################
## <summary>
## Execute aide in the aide domain
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`aide_domtrans',`
gen_require(`
type aide_t, aide_exec_t;
')
2007-03-23 23:24:59 +00:00
corecmd_search_bin($1)
2006-12-12 20:08:08 +00:00
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 access.
## </summary>
## </param>
## <param name="role">
## <summary>
## The role to allow the AIDE domain.
## </summary>
## </param>
## <param name="terminal">
## <summary>
## The type of the terminal allow the AIDE domain to use.
## </summary>
## </param>
#
interface(`aide_run',`
gen_require(`
type aide_t;
')
aide_domtrans($1)
role $2 types aide_t;
2006-12-12 20:08:08 +00:00
allow aide_t $3:chr_file rw_chr_file_perms;
2006-11-16 20:56:24 +00:00
')