From: Dan Walsh Date: Fri, 11 Nov 2011 21:45:33 +0000 (-0500) Subject: Fix ldconfig to create file with the correct label X-Git-Tag: 000~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=594caa2fdca30432ae010becb168869b2a801499;p=people%2Fstevee%2Fselinux-policy.git Fix ldconfig to create file with the correct label --- diff --git a/policy/modules/system/libraries.fc b/policy/modules/system/libraries.fc index 4986f1b6..ffb8797f 100644 --- a/policy/modules/system/libraries.fc +++ b/policy/modules/system/libraries.fc @@ -28,7 +28,9 @@ ifdef(`distro_redhat',` # /etc # /etc/ld\.so\.cache -- gen_context(system_u:object_r:ld_so_cache_t,s0) +/etc/ld\.so\.cache~ -- gen_context(system_u:object_r:ld_so_cache_t,s0) /etc/ld\.so\.preload -- gen_context(system_u:object_r:ld_so_cache_t,s0) +/etc/ld\.so\.preload~ -- gen_context(system_u:object_r:ld_so_cache_t,s0) /etc/ppp/plugins/rp-pppoe\.so -- gen_context(system_u:object_r:lib_t,s0) diff --git a/policy/modules/system/libraries.if b/policy/modules/system/libraries.if index eb621fd1..4ff705d7 100644 --- a/policy/modules/system/libraries.if +++ b/policy/modules/system/libraries.if @@ -550,5 +550,7 @@ interface(`libs_filetrans_named_content',` ') files_etc_filetrans($1, ld_so_cache_t, file, "ld.so.cache") + files_etc_filetrans($1, ld_so_cache_t, file, "ld.so.cache~") files_etc_filetrans($1, ld_so_cache_t, file, "ld.so.preload") + files_etc_filetrans($1, ld_so_cache_t, file, "ld.so.preload~") ')