--- rpms/smeserver-gitweb/contribs9/smeserver-gitweb.spec 2016/06/22 16:52:01 1.9 +++ rpms/smeserver-gitweb/contribs9/smeserver-gitweb.spec 2016/06/22 17:15:32 1.11 @@ -25,6 +25,8 @@ Patch3: smeserver-gitweb-1.1.0-runtime_s Patch4: smeserver-gitweb-1.1.0-defineURI.patch Patch5: smeserver-gitweb-1.1.0-fix_remote_auth.patch Patch6: smeserver-gitweb-1.1.0-fix_group_check.patch +Patch7: smeserver-gitweb-1.1.0-checktrusted_networks.patch + %description HTTP access to https://git.host.com provides a gitweb view of the repositories. @@ -32,6 +34,8 @@ HTTP access to https://git.host.com prov %changelog * Wed Jun 22 2016 Jean-Philipe Pialasse 1.1.0-7.sme - fix 500 error after auth on remote access [SME: 9614] +- check all trusted networks [SME: 9578] +- fix git db readable by everybody [SME: 9615] * Sat Jun 11 2016 Jean-Philipe Pialasse 1.1.0-6.sme - fix auth from remote IP [SME: 9202] @@ -81,6 +85,9 @@ HTTP access to https://git.host.com prov %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 + + %build @@ -96,7 +103,8 @@ rm -rf $RPM_BUILD_ROOT %post echo "Ensuring git database is accessible to GitWeb ..." touch /home/e-smith/db/git -chmod 644 /home/e-smith/db/git +chmod 640 /home/e-smith/db/git +chown root:www /home/e-smith/db/git echo "Expanding gitweb.conf template ..." /sbin/e-smith/expand-template /etc/gitweb.conf echo "Expanding GitWeb home page text template ..."