!396 Fix the log level of IMA digest_list

From: @HuaxinLuGitee 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
This commit is contained in:
openeuler-ci-bot 2024-09-11 06:17:22 +00:00 committed by Gitee
commit b04b22520d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 2 deletions

View File

@ -432,7 +432,7 @@ index 0000000..715b8d6
+ /* the character \0xa is append to MAGIC */ + /* the character \0xa is append to MAGIC */
+ offset = magic_len + 1; + offset = magic_len + 1;
+ if (file_size < offset) { + if (file_size < offset) {
+ rpmlog(RPMLOG_ERR, "digest_list: not have sig, do nothing\n"); + rpmlog(RPMLOG_DEBUG, "digest_list: not have sig, do nothing\n");
+ return 0; + return 0;
+ } + }
+ +

View File

@ -1,6 +1,6 @@
Name: rpm Name: rpm
Version: 4.18.2 Version: 4.18.2
Release: 14 Release: 15
Summary: RPM Package Manager Summary: RPM Package Manager
License: GPLv2+ License: GPLv2+
URL: http://www.rpm.org/ URL: http://www.rpm.org/
@ -343,6 +343,9 @@ make clean
%exclude %{_mandir}/man8/rpmspec.8.gz %exclude %{_mandir}/man8/rpmspec.8.gz
%changelog %changelog
* Wed Sep 11 2024 luhuaxin <luhuaxin1@huawei.com> - 4.18.2-15
- Fix the log level of IMA digest_list
* Wed Sep 4 2024 gengqihu<gengqihu2@h-partners.com> - 4.18.2-14 * Wed Sep 4 2024 gengqihu<gengqihu2@h-partners.com> - 4.18.2-14
- Backport some patches from upstream - Backport some patches from upstream