Commit Graph

34 Commits

Author SHA1 Message Date
Coiby Xu
fa8b7bbdcb Drop old libimaevm.so.4
Resovles: https://issues.redhat.com/browse/RHEL-82797
Signed-off-by: Coiby Xu <coxu@redhat.com>
2025-07-31 09:19:02 +08:00
Coiby Xu
c377b1a635 Release 1.6.2-1
Resolves: https://issues.redhat.com/browse/RHEL-74293
Resolves: https://issues.redhat.com/browse/RHEL-82793

Note previous commit left out the changes of ima-evm-utils.spec.

Signed-off-by: Coiby Xu <coxu@redhat.com>
2025-03-10 11:41:24 +08:00
Coiby Xu
f70f5151ef Release 1.6.2-1
Resolves: https://issues.redhat.com/browse/RHEL-74293
Resolves: https://issues.redhat.com/browse/RHEL-82793

Signed-off-by: Coiby Xu <coxu@redhat.com>
2025-03-10 11:17:22 +08:00
Coiby Xu
be19f8c496 ima-setup: fix two shellcheck warnings
Relates: https://issues.redhat.com/browse/RHEL-74293
Conflict: None

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 7b800d82d0947fd0e75e92997a3aec7af079c1cc
Author: Coiby Xu <coxu@redhat.com>
Date:   Tue Feb 25 13:24:33 2025 +0800

    ima-setup: fix two shellcheck warnings

    Fix the following two shellcheck warnings,

        In ima-setup.sh line 36:
                                echo "$policy_file doesn't exist"
                                      ^----------^ SC2154 (warning): policy_file is referenced but not assigned.

        In ima-setup.sh line 41:
                        reinstall_threshold=${_opt#*=}
                        ^-----------------^ SC2034 (warning): reinstall_threshold appears unused. Verify use (or export if used externally).

    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2025-03-06 16:47:57 +08:00
Coiby Xu
8b0244eded ima-setup: run zipl after building initramfs for s390x
Resolves: https://issues.redhat.com/browse/RHEL-74293
Conflict: None

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 2f1870b21accb4393a420cf55cba774dfd2d78ae
Author: Coiby Xu <coxu@redhat.com>
Date:   Tue Feb 25 13:17:28 2025 +0800

    ima-setup: run zipl after building initramfs for s390x

    Resovles: https://issues.redhat.com/browse/RHEL-74293

    Without running zipl, the old initramfs will be booted.

    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2025-03-06 16:47:26 +08:00
Coiby Xu
b585c591bc Release 1.5-3
Resolves: https://issues.redhat.com/browse/RHEL-62817
2024-11-13 10:58:41 +08:00
Coiby Xu
70baaeb2b3 add usage for ima-add-sigs
Related: https://issues.redhat.com/browse/RHEL-62817
Conflict: None

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 0e28d7448d1ac2608241949a25d6cb245b04874d
Author: Coiby Xu <coxu@redhat.com>
Date:   Wed Oct 16 14:10:05 2024 +0800

    add usage for ima-add-sigs

    Also format the usage info ima-setup.

    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-11-13 10:57:09 +08:00
Coiby Xu
55eba46a6a Skip some file systems for appraisal
Resolves: https://issues.redhat.com/browse/RHEL-62817
Conflict: None

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 83b610d7edee02804dc1cecab8e151728925e90b
Author: Coiby Xu <coxu@redhat.com>
Date:   Wed Oct 16 13:48:01 2024 +0800

    Skip some file systems for appraisal

    Resolves: https://issues.redhat.com/browse/RHEL-62817

    When 01-appraise-exectuables-and-lib-signatures is enabled, no login
    screen is available for user to log in. This happens because IMA stops
    gnome-shell from creating some temp files as can been from the audit log,

        type=INTEGRITY_DATA msg=audit(1728700747.130:10235): pid=3240 uid=42 auid=4294967295 ses=4294967295 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 op=appraise_data cause=IMA-signature-required comm="gnome-shell" name="/dev/shm/#3223" dev="tmpfs" ino=3223 res=0 errno=0UID="gdm" AUID="unset"
        type=INTEGRITY_DATA msg=audit(1728700747.130:10236): pid=3240 uid=42 auid=4294967295 ses=4294967295 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 op=appraise_data cause=IMA-signature-required comm="gnome-shell" name="/run/user/42/#454" dev="tmpfs" ino=454 res=0 errno=0UID="gdm" AUID="unset"
        type=INTEGRITY_DATA msg=audit(1728700747.131:10237): pid=3240 uid=42 auid=4294967295 ses=4294967295 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 op=appraise_data cause=IMA-signature-required comm="gnome-shell" name="memfd:libffi" dev="tmpfs" ino=578 res=0 errno=0UID="gdm" AUID="unset"

    Skip the file systems as listed in
    https://www.kernel.org/doc/Documentation/ABI/testing/ima_policy

    Reported-by: Raju Cheerla <rcheerla@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-11-13 10:56:44 +08:00
Coiby Xu
2dde08da92 Cleanup -libs subpackage info from changelog
Related: https://issues.redhat.com/browse/RHEL-33751

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 08:40:52 +08:00
Coiby Xu
94eefb8cb0 ima-setup: Install prerequisite package rpm-plugin-ima
Upstream Status: RHEL-only

Since rpm-plugin-ima is not a BaseOS package, install it in ima-setup.

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 07:27:10 +08:00
Coiby Xu
138b43468c Add IMA code signing certs
Related: https://issues.redhat.com/browse/RHEL-33751

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 07:18:20 +08:00
Coiby Xu
58d00e3452 Release 1.5-2
Resolves: https://issues.redhat.com/browse/RHEL-33751

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 07:18:20 +08:00
Coiby Xu
39851bfd63 ima-setup: include the integrity module for the default kernel
Resolves: https://issues.redhat.com/browse/RHEL-33751
Conflict: Fix a typo.

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 62f613cbb7e1753b2e8fa0ce547c02be24842b22
Author: Coiby Xu <coxu@redhat.com>
Date:   Mon Jun 3 14:39:06 2024 +0800

    ima-setup: include the integrity module for the default kernel

    ima-setup may run after a new kernel is installed. Detect this case by
    checking if the default kernel is the running kernel.

    Suggested-by: Marko Myllynen <myllynen@redhat.com>
    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 07:18:20 +08:00
Coiby Xu
eff6110deb ima-setup: Allow users to specify custom reinstall_threshold
Resolves: https://issues.redhat.com/browse/RHEL-33751
Conflict: None

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 141a74d96ab3cdee1b0d2cf6a0cba19337920e02
Author: Coiby Xu <coxu@redhat.com>
Date:   Tue May 28 09:54:19 2024 +0800

    ima-setup: Allow users to specify custom reinstall_threshold

    Some users may use custom built packages and we are not sure about the
    number of this type of packages. So make reinstall_threshold
    configurable.

    Suggested-by: Marko Myllynen <myllynen@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 07:18:20 +08:00
Coiby Xu
6760dcea53 Add some IMA setup tools
Resolves: https://issues.redhat.com/browse/RHEL-33751
Conflict: Upstream has -libs subpackage

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 8980421a049c776e2b77e534793aafb925b3ad48
Author: Coiby Xu <coiby.xu@gmail.com>
Date:   Mon May 6 17:48:52 2024 +0800

    Add some IMA setup tools

    Some IMA setup tools are added to ease IMA setup which will do
    the following tasks,
       - add IMA signatures to installed packages files
       - load IMA keys and policy
       - enable the dracut integrity module to load IMA keys and policy
         automatically

    Two IMA polices as suggested by Stefan Berger are also provided which
    will be signed automatically with other package files.

    Thanks to Marko Myllynen for coming up with the idea to have a tool
    similar to fips-mode-setup. And thanks to Mimi Zohar and Stefan Berger
    for providing the feedback!

    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 07:18:18 +08:00
Coiby Xu
881eecef9e 1.5, updates for bootstrapping
Related: https://issues.redhat.com/browse/RHEL-33751
Conflict: some minor conflicts to resolve. Also define bootstrap as 0
          and remove "--disable-engine"

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 631781e5b2
Author: Peter Robinson <pbrobinson@gmail.com>
Date:   Thu Jun 8 09:31:11 2023 +0100

    1.5, updates for bootstrapping

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-08 03:09:25 +08:00
Coiby Xu
aa675fa044 Disable compat subpkg
Related: https://issues.redhat.com/browse/RHEL-2969
Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-06-04 09:39:04 +08:00
Coiby Xu
1443a7e6f7 Enable compat subpkg
Related: https://issues.redhat.com/browse/RHEL-2969
Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-04-12 17:02:45 +08:00
Coiby Xu
09e3c9151e Rebase to upstream release v1.5
Related: https://issues.redhat.com/browse/RHEL-2969
Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-04-12 14:31:50 +08:00
Linqing Lu
c1406805d0 Migrate gating test to OSCI from QE CI
Resolves: rhbz#2042586

Signed-off-by: Linqing Lu <lilu@redhat.com>
2022-01-19 13:57:05 -05:00
Bruno Meneguele
f8dae177fe Fix compat bcond_with value check
Related: rhbz#2026028
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2021-12-13 17:05:29 -03:00
Bruno Meneguele
71d9e0d69b Remove compat subpkg from compose
Related: rhbz#2026028
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2021-12-10 17:35:05 -03:00
Bruno Meneguele
fdef5624a7 Add compat subpkg for helping building dependencies
Add old ima-evm-utils version with the patches to expose the old soname for
satisfying rpm-sign runtime dependency on the old soname. Thus, the new
rpm-sign can be built and then depend on the new soname.

Related: rhbz#2026028
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2021-12-07 18:31:45 -03:00
Bruno Meneguele
3f61e75888 Rebase to upstream release v1.4
The new version already handles the two additional patches that were being
applied through the rpm package creation, with that, remove both of them.
Also, this commit modifies some specfile pieces to get closer to Fedora's
specfile.

Related: rhbz#2026028
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2021-12-02 14:18:41 -03:00
Bruno Meneguele
360f5af681 Make SHA-256 the default hash algorithm
One of the requests from the Crypto team in RHEL-9 was to drop the support
for SHA1 as a strong algorithm. For ima-evm-utils it's not quite possible,
since it's somewhat dependent on the underlying hardware (TPM version).
However, SHA1 was still being used as the default hash algorithm, with that,
make SHA256 the default instead.

Also, this patch substitutes the patch to solve the memory leak added in the
last release to the one accepted in upstream.

Related: rhbz#1934949
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2021-08-20 11:02:19 -03:00
Mohan Boddu
3123d8e5ae Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-09 20:56:27 +00:00
Bruno Meneguele
bef6dde4a2 Add patch fixing memory leak
Related: rhbz#1938742
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2021-07-09 00:03:54 -03:00
Mohan Boddu
7faba5dc96 Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-06-16 03:26:12 +00:00
Linqing Lu
9cbfbd5398 Upload New File 2021-05-14 21:34:13 +00:00
Mohan Boddu
877d14ada1 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 00:35:00 +00:00
DistroBaker
43d7b70062 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/ima-evm-utils.git#6d8b830293833bc79b90c26d60e2c867df615691
2021-02-04 05:42:59 +01:00
DistroBaker
b9bfe94d3d Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/ima-evm-utils.git#406cc7e1e8d37034fc6155336a7d901d1ab96d87
2020-10-30 02:40:00 +01:00
Petr Šabata
375fb2047e RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/ima-evm-utils#dad4a640db5684c0c9fc5d1821d8a7428b20ebfb
2020-10-15 13:37:15 +02:00
Release Configuration Management
b5f7d05bde New branch setup 2020-10-08 15:16:36 +00:00