9 Star 0 Fork 11

src-openEuler/mod_security_crs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mod_security_crs.spec 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2023-12-27 15:42 . Fix CVE-2019-11389
Name: mod_security_crs
Version: 3.3.5
Release: 2
Summary: Rules of ModSecurity
License: ASL 2.0
URL: https://coreruleset.org/
Source: https://github.com/coreruleset/coreruleset/archive/v%{version}.tar.gz
# https://github.com/SpiderLabs/owasp-modsecurity-crs/pull/1362/commits/63ac8a0294b469dade3837a9ae417d822e112a95
Patch0: CVE-2019-11389.patch
BuildArch: noarch
Requires: mod_security >= 2.8.0
Obsoletes: mod_security_crs-extras < 3.0.0
%description
The base rules are provided for mod_security by this package.
%prep
%autosetup -n coreruleset-%{version} -p1
%build
%install
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/
install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules
install -d %{buildroot}%{_datarootdir}/mod_modsecurity_crs/rules
mv rules/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf
mv rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf
install -m0644 rules/* %{buildroot}%{_datarootdir}/mod_modsecurity_crs/rules/
mv crs-setup.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/crs-setup.conf
for f in `ls %{buildroot}%{_datarootdir}/mod_modsecurity_crs/rules/` ; do
ln -s %{_datarootdir}/mod_modsecurity_crs/rules/$f %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/$f;
done
%files
%doc CHANGES.md README.md LICENSE
%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/{activated_rules/*,crs-setup.conf}
%{_datarootdir}/mod_modsecurity_crs
%changelog
* Wed Dec 27 2023 yaoxin <[email protected]> - 3.3.5-2
- Fix CVE-2019-11389
* Tue Aug 22 2023 wulei <[email protected]> - 3.3.5-1
- Update to 3.3.5
* Mon Sep 26 2022 liangqifeng<[email protected]> - 3.2.2-1
- update to fix CVE-2022-39955~CVE-2022-39958
* Tue Apr 28 2020 wangerfeng<[email protected]> - 3.0.0-8
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/mod_security_crs.git
[email protected]:src-openeuler/mod_security_crs.git
src-openeuler
mod_security_crs
mod_security_crs
master

搜索帮助