1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-27 22:32:31 +02:00

tests: add test to verify EVM portable and immutable signatures

Now that evmctl supports verifying EVM portable and immutable signatures,
add the test.

Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
Mimi Zohar 2020-12-07 15:20:57 -05:00
parent f4b901d081
commit 097c81a1a5

View File

@ -328,9 +328,14 @@ try_different_sigs() {
expect_fail check_verify TYPE=ima
fi
# Test --portable
expect_pass check_sign OPTS="$OPTS --portable" PREFIX=0x05
# Cannot be verified for now, until that support is added to evmctl
# Test --portable (only supported for V2 signatures)
if expect_pass check_sign OPTS="$OPTS --portable --imahash" PREFIX=0x05; then
if [[ "$OPTS" =~ --rsa ]]; then
expect_fail check_verify
else
expect_pass check_verify
fi
fi
# Test -i (immutable)
expect_pass check_sign OPTS="$OPTS -i" PREFIX=0x0303