Skip to content

Commit

Permalink
Remove rpm-plugin-ima in Dockerfile on F41
Browse files Browse the repository at this point in the history
This plugin of ours, when installed in a container, currently causes
transaction errors (simply because IMA isn't supported in containers
currently).

This isn't immediately visible unless another dnf transaction would be
run, either in the Dockerfile itself, or in a custom podman container
made from the resulting "rpm" image tag.  Note that the tests themselves
aren't affected by this since they currently don't install any
IMA-signed packages.

In any case, the plugin is unnecessary in the test image, make sure to
remove it.

The reason it's installed is through the ima-evm-utils-devel package
(which pulls in ima-evm-utils-libs which pulls in the plugin).  This is
a new thing on F41 so only handle it there.
  • Loading branch information
dmnks authored and pmatilai committed Nov 15, 2024
1 parent 64ef32a commit b0c361e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ RUN ln -sf $(rpm --eval '%{_target_platform}%{?_gnu}')-pkg-config \
/usr/bin/pkg-config

# Self-destruct stock rpm
RUN if ! which dnf5; then \
RUN if which dnf5; then \
# Fedora 41+ \
rpm -e --nodeps --nodb \
rpm-plugin-ima; \
else \
# Fedora 40 \
rpm -e --nodeps --nodb \
rpm-sign-libs \
Expand Down

0 comments on commit b0c361e

Please sign in to comment.