last piece of dan's previous patch

This commit is contained in:
Chris PeBenito 2007-04-11 13:31:10 +00:00
parent 19b2dee3cc
commit 82e284bb89
2 changed files with 27 additions and 0 deletions

View File

@ -209,6 +209,26 @@ interface(`rpm_use_script_fds',`
allow $1 rpm_script_t:fd use;
')
########################################
## <summary>
## Create, read, write, and delete RPM
## script temporary files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`rpm_manage_script_tmp_files',`
gen_require(`
type rpm_script_tmp_t;
')
files_search_tmp($1)
manage_files_pattern($1,rpm_script_tmp_t,rpm_script_tmp_t)
')
########################################
## <summary>
## Read the RPM package database.

View File

@ -107,3 +107,10 @@ optional_policy(`
# dontaudit access to /usr/lib/apache, normal programs cannot read these libs anyway
apache_dontaudit_search_modules(ldconfig_t)
')
optional_policy(`
# When you install a kernel the postinstall builds a initrd image in tmp
# and executes ldconfig on it. If you dont allow this kernel installs
# blow up.
rpm_manage_script_tmp_files(ldconfig_t)
')