diff --git a/add-vm.stat_interval-10.patch b/add-vm.stat_interval-10.patch new file mode 100644 index 0000000000000000000000000000000000000000..4946f0b9d82d7a674c28c27f18649025dd38bd80 --- /dev/null +++ b/add-vm.stat_interval-10.patch @@ -0,0 +1,24 @@ +From 00b091b66d1dca5a6a6317fc8f61e4063807707c Mon Sep 17 00:00:00 2001 +From: Yangyang Shen +Date: Fri, 23 Jul 2021 15:24:51 +0800 +Subject: [PATCH] add vm.stat_interval=10 + +--- + security.conf | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/security.conf b/security.conf +index e5d39e2..a9f934f 100644 +--- a/security.conf ++++ b/security.conf +@@ -209,6 +209,7 @@ + #disable ICMP redirects acceptance + 407@m@/etc/sysctl.conf@net.ipv6.conf.all.accept_redirects=@0 + 407@m@/etc/sysctl.conf@net.ipv6.conf.default.accept_redirects=@0 ++407@m@/etc/sysctl.conf@vm.stat_interval=@10 + + #set LOG_UNKFAIL_ENAB to no + 622@m@/etc/login.defs@LOG_UNKFAIL_ENAB @no +-- +2.23.0 + diff --git a/security-tool.spec b/security-tool.spec index ecce80f8f7f837ec765b7576ed213a32d077c217..73711f240483b0da8de0811f202ab2832647ac55 100644 --- a/security-tool.spec +++ b/security-tool.spec @@ -1,7 +1,7 @@ Summary: openEuler Security Tool Name : security-tool Version: 2.0 -Release: 1.75 +Release: 1.76 Source0: https://gitee.com/openeuler/security-tool/repository/archive/v2.0.tar.gz License: Mulan PSL v2 URL: https://gitee.com/openeuler/security-tool @@ -16,6 +16,7 @@ BuildRequires: xauth Patch0: Use-secure-MACs-and-KexAlgorithms.patch Patch1: do-not-create-allow-file-while-the-command-does-not-.patch Patch2: Del-Wants-auditd-service-in-service-file.patch +Patch3: add-vm.stat_interval-10.patch %description openEuler Security Tool @@ -120,6 +121,9 @@ fi %attr(0500,root,root) %{_sbindir}/security-tool.sh %changelog +* Fri Jul 23 2021 shenyangyang - 2.0-1.76 +- add vm.stat_interval=10 + * Thu Jul 22 2021 gaoyusong - 2.0-1.75 - del Wants auditd service in service file