su: wants to read inits script keyring.

Signed-off-by: Dominick Grift <domg472@gmail.com>
This commit is contained in:
Dominick Grift 2010-10-08 15:08:57 +02:00 committed by Chris PeBenito
parent a576078738
commit b21846594d
2 changed files with 19 additions and 0 deletions

View File

@ -85,6 +85,7 @@ template(`su_restricted_domain_template', `
init_dontaudit_use_script_ptys($1_su_t) init_dontaudit_use_script_ptys($1_su_t)
# Write to utmp. # Write to utmp.
init_rw_utmp($1_su_t) init_rw_utmp($1_su_t)
init_search_script_key($1_su_t)
logging_send_syslog_msg($1_su_t) logging_send_syslog_msg($1_su_t)

View File

@ -1174,6 +1174,24 @@ interface(`init_dontaudit_use_script_fds',`
dontaudit $1 initrc_t:fd use; dontaudit $1 initrc_t:fd use;
') ')
########################################
## <summary>
## Search init script keys.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`init_search_script_key',`
gen_require(`
type initrc_t;
')
allow $1 initrc_t:key search;
')
######################################## ########################################
## <summary> ## <summary>
## Get the process group ID of init scripts. ## Get the process group ID of init scripts.