2005-05-19 03:39:17 +02:00
|
|
|
Summary: Security module for the Apache HTTP Server
|
|
|
|
Name: mod_security
|
2010-02-13 11:28:34 +01:00
|
|
|
Version: 2.5.12
|
|
|
|
Release: 1%{?dist}
|
2007-09-13 09:05:54 +02:00
|
|
|
License: GPLv2
|
2005-05-19 03:39:17 +02:00
|
|
|
URL: http://www.modsecurity.org/
|
|
|
|
Group: System Environment/Daemons
|
2006-04-11 12:42:57 +02:00
|
|
|
Source: http://www.modsecurity.org/download/modsecurity-apache_%{version}.tar.gz
|
2005-05-19 03:39:17 +02:00
|
|
|
Source1: mod_security.conf
|
2007-03-13 10:20:35 +01:00
|
|
|
Source2: modsecurity_localrules.conf
|
2005-07-09 02:41:23 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2008-08-12 12:01:15 +02:00
|
|
|
Requires: httpd httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing)
|
|
|
|
BuildRequires: httpd-devel libxml2-devel pcre-devel curl-devel lua-devel
|
2005-05-19 03:39:17 +02:00
|
|
|
|
|
|
|
%description
|
2005-07-09 02:41:23 +02:00
|
|
|
ModSecurity is an open source intrusion detection and prevention engine
|
|
|
|
for web applications. It operates embedded into the web server, acting
|
|
|
|
as a powerful umbrella - shielding web applications from attacks.
|
2005-05-19 03:39:17 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2007-03-13 10:20:35 +01:00
|
|
|
%setup -n modsecurity-apache_%{version}
|
2005-05-19 03:39:17 +02:00
|
|
|
|
|
|
|
%build
|
2008-08-12 12:01:15 +02:00
|
|
|
cd apache2
|
|
|
|
%configure
|
|
|
|
make %{_smp_mflags}
|
2008-12-29 13:26:52 +01:00
|
|
|
make %{_smp_mflags} mlogc
|
2005-05-19 03:39:17 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2007-03-26 15:03:26 +02:00
|
|
|
install -D -m755 apache2/.libs/mod_security2.so %{buildroot}/%{_libdir}/httpd/modules/mod_security2.so
|
2007-03-13 10:20:35 +01:00
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/mod_security.conf
|
2009-11-06 10:39:42 +01:00
|
|
|
install -d %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
|
2009-11-07 01:57:55 +01:00
|
|
|
install -D -m644 rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
|
|
|
|
cp -R rules/base_rules %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
|
|
|
|
cp -R rules/optional_rules %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/
|
2007-03-13 10:20:35 +01:00
|
|
|
install -D -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/modsecurity_localrules.conf
|
2008-12-29 13:26:52 +01:00
|
|
|
install -Dp tools/mlogc %{buildroot}/%{_bindir}/mlogc
|
|
|
|
install -D -m644 apache2/mlogc-src/mlogc-default.conf %{buildroot}/%{_sysconfdir}/mlogc.conf
|
2005-05-19 03:39:17 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
2009-11-07 01:57:55 +01:00
|
|
|
%doc rules/util CHANGES LICENSE README.* modsecurity* doc MODSECURITY_LICENSING_EXCEPTION
|
2007-03-13 10:20:35 +01:00
|
|
|
%{_libdir}/httpd/modules/mod_security2.so
|
2008-12-29 13:26:52 +01:00
|
|
|
%{_bindir}/mlogc
|
|
|
|
%config(noreplace) %{_sysconfdir}/mlogc.conf
|
2007-06-19 12:25:54 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_security.conf
|
2007-03-13 10:20:35 +01:00
|
|
|
%dir %{_sysconfdir}/httpd/modsecurity.d
|
2009-11-07 01:57:55 +01:00
|
|
|
%{_sysconfdir}/httpd/modsecurity.d/optional_rules
|
|
|
|
%{_sysconfdir}/httpd/modsecurity.d/base_rules
|
2007-06-19 12:25:54 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/*.conf
|
2007-03-13 10:20:35 +01:00
|
|
|
|
2005-05-19 03:39:17 +02:00
|
|
|
%changelog
|
2010-02-13 11:28:34 +01:00
|
|
|
* Sat Feb 13 2010 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 2.5.12-1
|
|
|
|
- Update to latest upstream release
|
|
|
|
- SECURITY: Fix potential rules bypass and denial of service (bz#563576)
|
|
|
|
|
2009-11-06 10:39:42 +01:00
|
|
|
* Fri Nov 6 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 2.5.10-2
|
|
|
|
- Fix rules and Apache configuration (bz#533124)
|
|
|
|
|
2009-10-26 07:46:39 +01:00
|
|
|
* Thu Oct 8 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 2.5.10-1
|
|
|
|
- Upgrade to 2.5.10 (with Core Rules v2)
|
|
|
|
|
2009-07-25 16:55:15 +02:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-12 10:39:50 +01:00
|
|
|
* Thu Mar 12 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> 2.5.9-1
|
|
|
|
- Update to upstream release 2.5.9
|
|
|
|
- Fixes potential DoS' in multipart request and PDF XSS handling
|
|
|
|
|
2009-02-26 03:13:40 +01:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-29 13:26:52 +01:00
|
|
|
* Mon Dec 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.5.7-1
|
|
|
|
- Update to upstream 2.5.7
|
|
|
|
- Reinstate mlogc
|
|
|
|
|
2008-08-12 12:01:15 +02:00
|
|
|
* Sat Aug 2 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.5.6-1
|
|
|
|
- Update to upstream 2.5.6
|
|
|
|
- Remove references to mlogc, it no longer ships in the main tarball.
|
|
|
|
- Link correctly vs. libxml2 and lua (bz# 445839)
|
|
|
|
- Remove bogus LoadFile directives as they're no longer needed.
|
|
|
|
|
2008-04-13 14:20:23 +02:00
|
|
|
* Sun Apr 13 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.7-1
|
|
|
|
- Update to upstream 2.1.7
|
|
|
|
|
2008-02-23 00:39:44 +01:00
|
|
|
* Sat Feb 23 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.6-1
|
|
|
|
- Update to upstream 2.1.6 (Extra features including SecUploadFileMode)
|
|
|
|
|
2008-02-19 14:28:57 +01:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.1.5-3
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-27 07:40:10 +01:00
|
|
|
* Sat Jan 27 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.5-2
|
2008-01-27 07:18:13 +01:00
|
|
|
- Update to 2.1.5 (bz#425986)
|
2008-01-27 07:40:10 +01:00
|
|
|
- "blocking" -> "optional_rules" per tarball ;-)
|
|
|
|
|
2008-01-27 07:18:13 +01:00
|
|
|
|
2007-09-13 09:05:54 +02:00
|
|
|
* Thu Sep 13 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.3-1
|
|
|
|
- Update to 2.1.3
|
|
|
|
- Update License tag per guidelines.
|
|
|
|
|
2007-09-03 10:32:11 +02:00
|
|
|
* Mon Sep 3 2007 Joe Orton <jorton@redhat.com> 2.1.1-3
|
|
|
|
- rebuild for fixed 32-bit APR (#254241)
|
|
|
|
|
2007-08-29 07:02:39 +02:00
|
|
|
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.1.1-2
|
|
|
|
- Rebuild for selinux ppc32 issue.
|
|
|
|
|
2007-06-19 12:25:54 +02:00
|
|
|
* Tue Jun 19 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.1-1
|
|
|
|
- New upstream release
|
|
|
|
- Drop ASCIIZ rule (fixed upstream)
|
|
|
|
- Re-enable protocol violation/anomalies rules now that REQUEST_FILENAME
|
|
|
|
is fixed upstream.
|
|
|
|
|
2007-04-01 11:57:48 +02:00
|
|
|
* Sun Apr 1 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.0-3
|
|
|
|
- Automagically configure correct library path for libxml2 library.
|
|
|
|
- Add LoadModule for mod_unique_id as the logging wants this at runtime
|
|
|
|
|
2007-03-26 15:03:26 +02:00
|
|
|
* Mon Mar 26 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.0-2
|
|
|
|
- Fix DSO permissions (bz#233733)
|
|
|
|
|
2007-03-13 10:20:35 +01:00
|
|
|
* Tue Mar 13 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 2.1.0-1
|
|
|
|
- New major release - 2.1.0
|
|
|
|
- Fix CVE-2007-1359 with a local rule courtesy of Ivan Ristic
|
|
|
|
- Addition of core ruleset
|
|
|
|
- (Build)Requires libxml2 and pcre added.
|
|
|
|
|
2006-09-03 08:41:10 +02:00
|
|
|
* Sun Sep 3 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.4-2
|
|
|
|
- Rebuild
|
|
|
|
- Fix minor longstanding braino in included sample configuration (bz #203972)
|
|
|
|
|
2006-05-15 14:31:04 +02:00
|
|
|
* Mon May 15 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2006-04-11 12:42:57 +02:00
|
|
|
* Tue Apr 11 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.3-1
|
|
|
|
- New upstream release
|
|
|
|
- Trivial spec tweaks
|
|
|
|
|
2006-02-28 23:45:34 +01:00
|
|
|
* Wed Mar 1 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.2-3
|
|
|
|
- Bump for FC5
|
|
|
|
|
2006-02-10 14:43:39 +01:00
|
|
|
* Fri Feb 10 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.2-2
|
|
|
|
- Bump for newer gcc/glibc
|
|
|
|
|
2006-01-18 03:14:08 +01:00
|
|
|
* Wed Jan 18 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2005-12-15 23:36:12 +01:00
|
|
|
* Fri Dec 16 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.1-2
|
|
|
|
- Bump for new httpd
|
|
|
|
|
2005-12-01 12:32:58 +01:00
|
|
|
* Thu Dec 1 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9.1-1
|
|
|
|
- New release 1.9.1
|
|
|
|
|
2005-11-22 09:39:23 +01:00
|
|
|
* Wed Nov 9 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.9-1
|
|
|
|
- New stable upstream release 1.9
|
|
|
|
|
2005-07-09 13:58:44 +02:00
|
|
|
* Sat Jul 9 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.8.7-4
|
|
|
|
- Add Requires: httpd-mmn to get the appropriate "module magic" version
|
2005-11-22 09:39:23 +01:00
|
|
|
(thanks Ville Skytta)
|
2005-07-09 13:58:44 +02:00
|
|
|
- Disabled an overly-agressive rule or two..
|
|
|
|
|
2005-07-09 02:41:23 +02:00
|
|
|
* Sat Jul 9 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.8.7-3
|
|
|
|
- Correct Buildroot
|
|
|
|
- Some sensible and safe rules for common apps in mod_security.conf
|
|
|
|
|
2005-05-19 08:42:01 +02:00
|
|
|
* Thu May 19 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.8.7-2
|
|
|
|
- Don't strip the module (so we can get a useful debuginfo package)
|
|
|
|
|
2005-05-19 03:39:17 +02:00
|
|
|
* Thu May 19 2005 Michael Fleming <mfleming+rpm@enlartenment.com> 1.8.7-1
|
|
|
|
- Initial spin for Extras
|