|
Chris PeBenito |
7576fa |
## <summary>Filesystem automounter service.</summary>
|
|
Chris PeBenito |
7576fa |
|
|
Chris PeBenito |
7576fa |
########################################
|
|
Chris PeBenito |
7576fa |
## <summary>
|
|
Chris PeBenito |
7576fa |
## Execute automount in the automount domain.
|
|
Chris PeBenito |
7576fa |
## </summary>
|
|
Chris PeBenito |
7576fa |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
7576fa |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
7576fa |
## </param>
|
|
Chris PeBenito |
7576fa |
#
|
|
Chris PeBenito |
7576fa |
interface(`automount_domtrans',`
|
|
Chris PeBenito |
7576fa |
gen_require(`
|
|
Chris PeBenito |
7576fa |
type automount_t, automount_exec_t;
|
|
Chris PeBenito |
7576fa |
')
|
|
Chris PeBenito |
7576fa |
|
|
Chris PeBenito |
7576fa |
corecmd_search_sbin($1)
|
|
Chris PeBenito |
7576fa |
domain_auto_trans($1, automount_exec_t, automount_t)
|
|
Chris PeBenito |
7576fa |
|
|
Chris PeBenito |
7576fa |
allow $1 automount_t:fd use;
|
|
Chris PeBenito |
7576fa |
allow automount_t $1:fd use;
|
|
Chris PeBenito |
7576fa |
allow automount_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
7576fa |
allow automount_t $1:process sigchld;
|
|
Chris PeBenito |
7576fa |
|
|
Chris PeBenito |
7576fa |
')
|
|
Chris PeBenito |
7576fa |
|
|
Chris PeBenito |
7576fa |
########################################
|
|
Chris PeBenito |
7576fa |
## <summary>
|
|
Chris PeBenito |
7576fa |
## Execute automount in the caller domain.
|
|
Chris PeBenito |
7576fa |
## </summary>
|
|
Chris PeBenito |
7576fa |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
7576fa |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
7576fa |
## </param>
|
|
Chris PeBenito |
7576fa |
#
|
|
Chris PeBenito |
3b4da4 |
interface(`automount_exec_config',`
|
|
Chris PeBenito |
7576fa |
gen_require(`
|
|
Chris PeBenito |
3b4da4 |
type automount_etc_t;
|
|
Chris PeBenito |
7576fa |
')
|
|
Chris PeBenito |
7576fa |
|
|
Chris PeBenito |
7576fa |
corecmd_search_sbin($1)
|
|
Chris PeBenito |
7576fa |
can_exec($1,automount_etc_t)
|
|
Chris PeBenito |
7576fa |
')
|
|
Chris PeBenito |
b0d224 |
|
|
Chris PeBenito |
b0d224 |
########################################
|
|
Chris PeBenito |
b0d224 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## Allow the domain to read state files in /proc.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## <param name="domain">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## Domain to allow access.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
interface(`automount_read_state',`
|
|
Chris PeBenito |
edf241 |
gen_require(`
|
|
Chris PeBenito |
edf241 |
type automount_t;
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1 automount_t:dir search_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1 automount_t:file r_file_perms;
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
b0d224 |
## Do not audit attempts to get the attributes
|
|
Chris PeBenito |
b0d224 |
## of automount temporary directories.
|
|
Chris PeBenito |
b0d224 |
## </summary>
|
|
Chris PeBenito |
b0d224 |
## <param name="domain">
|
|
Chris PeBenito |
b0d224 |
## <summary>
|
|
Chris PeBenito |
b0d224 |
## Domain to not audit.
|
|
Chris PeBenito |
b0d224 |
## </summary>
|
|
Chris PeBenito |
b0d224 |
## </param>
|
|
Chris PeBenito |
b0d224 |
#
|
|
Chris PeBenito |
b0d224 |
interface(`automount_dontaudit_getattr_tmp_dirs',`
|
|
Chris PeBenito |
b0d224 |
gen_require(`
|
|
Chris PeBenito |
b0d224 |
type automount_tmp_t;
|
|
Chris PeBenito |
b0d224 |
')
|
|
Chris PeBenito |
b0d224 |
|
|
Chris PeBenito |
b0d224 |
dontaudit $1 automount_tmp_t:dir getattr;
|
|
Chris PeBenito |
b0d224 |
')
|