diff --git a/secpaver.spec b/secpaver.spec index 23b16120cb40f70d2d58c52939cbdf868eaa7bb5..7900c559afbee676d4ad0a5344b1b2d7fe138049 100755 --- a/secpaver.spec +++ b/secpaver.spec @@ -2,12 +2,13 @@ Name: secpaver Summary: Security policy development tool Version: 1.0.2 -Release: 1 +Release: 2 License: Mulan PSL v2 URL: https://gitee.com/openeuler/secpaver Source: https://gitee.com/openeuler/secpaver/repository/archive/%{name}-%{version}.tar.gz Patch0001: dont-do-daemon-reload-in-make-install.patch +Patch0002: set-default-log-path.patch BuildRequires: golang make Requires: %{name}-plugin = %{version}-%{release} @@ -72,5 +73,8 @@ SELinux plugin for secPaver. %systemd_postun_with_restart pavd.service %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 - Package init diff --git a/set-default-log-path.patch b/set-default-log-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..e75230abf6e387fc376682a23293cf3675575921 --- /dev/null +++ b/set-default-log-path.patch @@ -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 +