From e917663058e971c0129ec2fa1c6ff0d81733d449b891d0480487bc3567fba68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20=C4=8C=C3=AD=C5=BEek?= Date: Thu, 6 Oct 2016 08:55:55 +0000 Subject: [PATCH] Accepting request 431310 from home:jengelh:branches:Apache:Modules - Avoid changing permissions through symlinks OBS-URL: https://build.opensuse.org/request/show/431310 OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_nss?expand=0&rev=30 --- apache2-mod_nss.changes | 5 +++++ apache2-mod_nss.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apache2-mod_nss.changes b/apache2-mod_nss.changes index 2249809..293cdf9 100644 --- a/apache2-mod_nss.changes +++ b/apache2-mod_nss.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 29 15:26:39 UTC 2016 - jengelh@inai.de + +- Avoid changing permissions through symlinks + ------------------------------------------------------------------- Thu Sep 15 10:44:06 UTC 2016 - vcizek@suse.com diff --git a/apache2-mod_nss.spec b/apache2-mod_nss.spec index 72f5ec2..8fc639d 100644 --- a/apache2-mod_nss.spec +++ b/apache2-mod_nss.spec @@ -199,8 +199,8 @@ if [ ! -e %{apache_sysconf_nssdir}/key3.db ]; then echo "" fi # Make sure that the database ownership is setup properly. -find %{apache_sysconf_nssdir} -user root -name "*.db" -exec /bin/chgrp www {} \; -find %{apache_sysconf_nssdir} -user root -name "*.db" -exec /bin/chmod 640 {} \; +find %{apache_sysconf_nssdir} -user root -name "*.db" -exec /bin/chgrp -h www {} + +find %{apache_sysconf_nssdir} -user root -name "*.db" ! -type l -exec /bin/chmod 640 {} + %files %defattr(-,root,root,-)