IMA/EVM support utilities
Go to file
Bruno Meneguele 5ff49ee731
ima-setup: check for required argument
The IMA policy file is required for the setup but it was not being checked
if the user passed it before checking if the policy file existed, thus an
empty argument would fail with a weird "  doesn't exist" message.

This commit adds the check for the argument presence at the beginning of the
script, guaranteeing it cannot be empty, and remove the policy file
existence from the middle of runtime, leaving the check already in place at
the argument parsing logic.

At the same time, reword parts of the usage message to make things clearer.

Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
2026-07-06 08:35:48 -03:00
tests initial gating tests 2024-04-09 11:03:52 -04:00
.gitignore v1.3 2020-07-26 13:51:27 +01:00
centosimarelease-10.der Add IMA code signing certs 2024-11-08 10:58:05 +08:00
dracut-98-integrity.conf Add some IMA setup tools 2024-11-08 10:58:05 +08:00
gating.yaml initial gating tests 2024-04-09 11:03:52 -04:00
ima-add-sigs.sh ima-setup: check for required argument 2026-07-06 08:35:48 -03:00
ima-evm-utils.spec Release 1.6.2-5 2026-03-12 12:08:39 +08:00
ima-setup.sh ima-setup: check for required argument 2026-07-06 08:35:48 -03:00
policy_list Skip some file systems for appraisal 2024-11-08 10:58:05 +08:00
policy-01-appraise-executable-and-lib-signatures Don't allow files in tmpfs to be executed 2026-03-10 10:36:32 +08:00
policy-02-keylime-remote-attestation Add some IMA setup tools 2024-11-08 10:58:05 +08:00
redhatimarelease-10.der Add IMA code signing certs 2024-11-08 10:58:05 +08:00
sources Update to upstream 1.6.2 2024-11-15 17:17:26 +08:00