Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
I wonder if we shouldn't just reuse the [compatibility wrapper](https://github.com/linux-integrity/ima-evm-utils/blob/dc5969360a0439d225a0df386aeb2f4ab9f0661a/src/libimaevm.c#L1443) `sign_hash()` in libimaevm.c. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-softwa

[Rpm-maint] [rpm-software-management/rpm] Consolidate rpm format detection and terminology (PR #3461)

2024-11-21 Thread Panu Matilainen
You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/3461 -- Commit Summary -- * Rename the rpm format selection macro to %_rpmformat * Add missing documentation for RPMTAG_RPMFORMAT tag * Add tag extension for rpm format ve

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add a test(s) for IMA signing (Issue #3237)

2024-11-21 Thread Michal Domonkos
Closed #3237 as completed via 4806340cb8fcf80de6909dfa9697ed3c454d3e03. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/3237#event-15384706858 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [Rpm-maint] [rpm-software-management/rpm] Deprecated libimaevm symbol (Issue #3419)

2024-11-21 Thread Michal Domonkos
Closed #3419 as completed via 93f2d30001f16212d33b1c7344318798a785305e. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/3419#event-15384706972 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Merged #3458 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#event-15384706413 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mail

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Given the above, as well as Stefan's thumbs up, LGTM now, let's merge. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491661316 You are receiving this because you are subscribed to this thread. Message ID:

[Rpm-maint] [rpm-software-management/rpm] Fix regression on build-id generation from compressed ELF files (PR #3463)

2024-11-21 Thread Panu Matilainen
Another cmake fallout - we even have the define in config.h.in but the actual test was missing, causing us to never use the compression aware dwelf_elf_begin() version. The only reproducer I'm aware of is a kernel module, and we don't want to pull in the huge kernel-devel to the test CI for thi

[Rpm-maint] [rpm-software-management/rpm] centos7.9 upgrade 4.11 to 4.14.1 (Discussion #3459)

2024-11-21 Thread devil-ming
My all operation is in the container os:CentOS Linux release 7.9.2009 (Core) rpm version: RPM version 4.11.3 ```bash yum -y install centos-release nss-devel nspr-devel file-devel popt-devel libarchive-devel lua-devel autoconf automake libtool zstd wget http://ftp.rpm.org/releases/rpm-4.14.x/rpm-4

[Rpm-maint] [rpm-software-management/rpm] Update GPL and LGPL in COPYING (PR #3460)

2024-11-21 Thread Florian Festi
The postal address of the FSF in there is no longer valid. Use license files currently available at https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt There are minor formatting changes. The license the code is under is not changed. Re

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
The test needs a bit more tweaking, I'll push a fixup commit in a moment. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2490619770 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [Rpm-maint] [rpm-software-management/rpm] centos7.9 upgrade 4.11 to 4.14.1 (Discussion #3459)

2024-11-21 Thread Panu Matilainen
> ./configure --prefix=/usr This isn't how rpm on Centos is configured, so it's no wonder it doesn't work. Updating the system rpm beyond what the distro offers, you really need to know what you're doing. And updating beyond the original major.minor branch is not recommended even then. -- R

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Hi @stefanberger, could you please have a look at our usage of `imaevm_signhash()` here? We're not sure if we're using it right since there's no documentation available. Thanks! -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuec

Re: [Rpm-maint] [rpm-software-management/rpm] Consolidate rpm format detection and terminology (PR #3461)

2024-11-21 Thread Panu Matilainen
Meh, forgot tests... I really am not awake today -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3461#issuecomment-2491085892 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [Rpm-maint] [rpm-software-management/rpm] Update GPL and LGPL in COPYING (PR #3460)

2024-11-21 Thread Panu Matilainen
Merged #3460 into master. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3460#event-15379643222 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mail

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
@dmnks pushed 2 commits. 776ad98616a67ea05667e87f97eb9f357d1de47a fixup! Add test case for ima file signatures f86ae36dd8de4c3df97f2e45dcbfaf3e5bca3f92 fixup! Add test case for ima file signatures -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458/files/c2273603a5

Re: [Rpm-maint] [rpm-software-management/rpm] Incorrect FSF address in COPYING license file (Issue #3456)

2024-11-21 Thread Panu Matilainen
Closed #3456 as completed via #3460. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/3456#event-15379643483 You are receiving this because you are subscribed to this thread. Message ID: ___ R

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Panu Matilainen
@pmatilai commented on this pull request. > @@ -0,0 +1,5 @@ +-BEGIN EC PRIVATE KEY- +MHQCAQEEIAqhMWlmwcHwa2pXlyxUfPUvKMdrHHxGAkKz0EfHrlZpoAcGBSuBBAAK +oUQDQgAEhJIpSysqJlsr0+nAwQDYaqk4hkLmU+2Pje5jCpI6QfakJD+bVrXqF+5Z +xbwEh+e+lrhDLfj9+jJTOda4WD83Ng== +-END EC PRIVATE KEY- Please

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Oh, we're running on F40 in the CI, right. That's why, it's not deprecated there yet. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491363527 You are receiving this because you are subscribed to this thread. Message

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
@dmnks pushed 1 commit. 9790ec793ebcf5f2cf7ed66681374a2b9917d774 fixup! Use imaevm_signhash if available -- View it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458/files/375a17a1866b4d7c5766af8c44fe1f4d60bef948..9790ec793ebcf5f2cf7ed66681374a2b9917d774 You are receiving thi

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Hmm, that's strange, one would expect the build to blow up then... -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491354980 You are receiving this because you are subscribed to this thread. Message ID:

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Pushed a fixup for the symbol detection issue, now it's working fine. The solution was to use `check_library_exists()` instead of `check_function_exists()`, with the former being generally [recommended](https://cmake.org/cmake/help/latest/module/CheckFunctionExists.html) over the latter. Note

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
@ffesti, if you're ok with the test fixups, please squash them. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491092181 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
Yep, noticed, thanks! I'm still getting the deprecation warning on cmake configuration, though. I guess the `HAVE_IMAEVM_SIGNHASH` macro isn't true for some reason (in my setup). -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issue

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Panu Matilainen
Yeah the same goes for CI, the log says: > #19 4.038 -- Looking for imaevm_signhash > #19 4.131 -- Looking for imaevm_signhash - not found -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491349389 You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Panu Matilainen
...and on my F41 locally (so ima-evm-utils-1.6.2-2.fc41.x86_64). So this new version isn't being used now. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491363565 You are receiving this because you are subscribed to t

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Michal Domonkos
I've tried actually verifying an IMA signature made with rpm built from this branch, using the following steps: ```bash $ cat x509_evm.genkey # Begining of the file [ req ] default_bits = 1024 distinguished_name = req_distinguished_name prompt = no string_mask = utf8only x509_extensions = myexts

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Stefan Berger
> Hi @stefanberger, could you please have a look at our usage of > `imaevm_signhash()` here? We're not sure if we're using it right since > there's no documentation available. Thanks! Looks good to me. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-manage

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Florian Festi
Squashed and command to create key added in commit message. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491321829 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] Use imaevm_signhash if available (PR #3458)

2024-11-21 Thread Florian Festi
Squashed again -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/3458#issuecomment-2491545647 You are receiving this because you are subscribed to this thread. Message ID: ___ Rpm-maint mailing li

[Rpm-maint] [rpm-software-management/rpm] Additional IMA test fixups (PR #3462)

2024-11-21 Thread Michal Domonkos
Minor issues I've noticed while working on a different IMA-related fix :smile: You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/3462 -- Commit Summary -- * Detect missing file signatures in IMA test * Skip IMA test when b