2005-12-09 20:08:10 +00:00
|
|
|
## <summary>Filesystem automounter service.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute automount in the automount domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-12-09 20:08:10 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-12-09 20:08:10 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`automount_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type automount_t, automount_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, automount_exec_t, automount_t)
|
2005-12-09 20:08:10 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute automount in the caller domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-12-09 20:08:10 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-12-09 20:08:10 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2005-12-12 16:52:25 +00:00
|
|
|
interface(`automount_exec_config',`
|
2005-12-09 20:08:10 +00:00
|
|
|
gen_require(`
|
2005-12-12 16:52:25 +00:00
|
|
|
type automount_etc_t;
|
2005-12-09 20:08:10 +00:00
|
|
|
')
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin($1)
|
2005-12-09 20:08:10 +00:00
|
|
|
can_exec($1,automount_etc_t)
|
|
|
|
')
|
2006-02-13 22:05:08 +00:00
|
|
|
|
2006-03-13 21:36:49 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow the domain to read state files in /proc.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to allow access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`automount_read_state',`
|
|
|
|
gen_require(`
|
|
|
|
type automount_t;
|
|
|
|
')
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
read_files_pattern($1,automount_t,automount_t)
|
2006-03-13 21:36:49 +00:00
|
|
|
')
|
|
|
|
|
2006-02-13 22:05:08 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to get the attributes
|
|
|
|
## of automount temporary directories.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`automount_dontaudit_getattr_tmp_dirs',`
|
|
|
|
gen_require(`
|
|
|
|
type automount_tmp_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 automount_tmp_t:dir getattr;
|
|
|
|
')
|