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>
This commit is contained in:
parent
138b43468c
commit
94eefb8cb0
@ -40,7 +40,6 @@ BuildRequires: libxslt
|
||||
BuildRequires: make
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: tpm2-tss-devel
|
||||
Requires: rpm-plugin-ima
|
||||
Requires: keyutils
|
||||
Requires: attr
|
||||
|
||||
|
||||
@ -46,6 +46,12 @@ if [[ $# -eq 0 ]]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
echo "Installing prerequisite package rpm-plugin-ima"
|
||||
if ! dnf install rpm-plugin-ima -yq; then
|
||||
echo "Failed to install rpm-plugin-ima, abort"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add IMA signatures
|
||||
if test -f /run/ostree-booted; then
|
||||
echo "You are using OSTree, please enable IMA signatures as part of the OSTree creation process."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user