From 1b2de0be8912fb1b705454011ed6190f52199f60 Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Sat, 11 Jun 2022 12:17:18 +0800
Subject: [PATCH] change log file permission 0400

---
 conf/logrotate.d/secgear | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/conf/logrotate.d/secgear b/conf/logrotate.d/secgear
index 92da41e..f88bb59 100644
--- a/conf/logrotate.d/secgear
+++ b/conf/logrotate.d/secgear
@@ -5,4 +5,7 @@
 	nocompress
 	copytruncate
 	size 2048k
+	lastaction
+	chmod 0400 /var/log/secgear/secgear.log.*
+	endscript
 }
-- 
2.27.0

