last piece of dan's previous patch
This commit is contained in:
parent
19b2dee3cc
commit
82e284bb89
@ -209,6 +209,26 @@ interface(`rpm_use_script_fds',`
|
|||||||
allow $1 rpm_script_t:fd use;
|
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>
|
## <summary>
|
||||||
## Read the RPM package database.
|
## Read the RPM package database.
|
||||||
|
@ -107,3 +107,10 @@ optional_policy(`
|
|||||||
# dontaudit access to /usr/lib/apache, normal programs cannot read these libs anyway
|
# dontaudit access to /usr/lib/apache, normal programs cannot read these libs anyway
|
||||||
apache_dontaudit_search_modules(ldconfig_t)
|
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)
|
||||||
|
')
|
||||||
|
Loading…
Reference in New Issue
Block a user