set default log path
This commit is contained in:
parent
b5b94432a2
commit
dcb134f398
@ -2,12 +2,13 @@
|
|||||||
Name: secpaver
|
Name: secpaver
|
||||||
Summary: Security policy development tool
|
Summary: Security policy development tool
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 1
|
Release: 2
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
URL: https://gitee.com/openeuler/secpaver
|
URL: https://gitee.com/openeuler/secpaver
|
||||||
Source: https://gitee.com/openeuler/secpaver/repository/archive/%{name}-%{version}.tar.gz
|
Source: https://gitee.com/openeuler/secpaver/repository/archive/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0001: dont-do-daemon-reload-in-make-install.patch
|
Patch0001: dont-do-daemon-reload-in-make-install.patch
|
||||||
|
Patch0002: set-default-log-path.patch
|
||||||
|
|
||||||
BuildRequires: golang make
|
BuildRequires: golang make
|
||||||
Requires: %{name}-plugin = %{version}-%{release}
|
Requires: %{name}-plugin = %{version}-%{release}
|
||||||
@ -72,5 +73,8 @@ SELinux plugin for secPaver.
|
|||||||
%systemd_postun_with_restart pavd.service
|
%systemd_postun_with_restart pavd.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 30 2021 luhuaxin <1539327763@qq.com> - 1.0.2-2
|
||||||
|
- set default log path
|
||||||
|
|
||||||
* Thu Sep 30 2021 luhuaxin <1539327763@qq.com> - 1.0.2-1
|
* Thu Sep 30 2021 luhuaxin <1539327763@qq.com> - 1.0.2-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
31
set-default-log-path.patch
Normal file
31
set-default-log-path.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From d416900818c635feb180ba85660d77cf83c99daa Mon Sep 17 00:00:00 2001
|
||||||
|
From: luhuaxin <1539327763@qq.com>
|
||||||
|
Date: Thu, 30 Sep 2021 20:46:12 +0800
|
||||||
|
Subject: [PATCH] set default log path
|
||||||
|
|
||||||
|
Signed-off-by: luhuaxin <1539327763@qq.com>
|
||||||
|
---
|
||||||
|
misc/config/config.json | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/misc/config/config.json b/misc/config/config.json
|
||||||
|
index 49b9e0b..1e16f16 100644
|
||||||
|
--- a/misc/config/config.json
|
||||||
|
+++ b/misc/config/config.json
|
||||||
|
@@ -8,10 +8,10 @@
|
||||||
|
"policies": "/var/local/secpaver/policies"
|
||||||
|
},
|
||||||
|
"log":{
|
||||||
|
- "path":"",
|
||||||
|
+ "path":"/var/log/secpaver/pavd.log",
|
||||||
|
"level":"info",
|
||||||
|
"maxFileSize": 10,
|
||||||
|
"maxFileNum": 20,
|
||||||
|
"maxFileAge": 30
|
||||||
|
}
|
||||||
|
-}
|
||||||
|
\ No newline at end of file
|
||||||
|
+}
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user