From: Vitaly Chikunov <vt@altlinux.org>
To: Mimi Zohar <zohar@linux.vnet.ibm.com>,
Dmitry Kasatkin <dmitry.kasatkin@gmail.com>,
linux-integrity@vger.kernel.org
Cc: Mimi Zohar <zohar@linux.ibm.com>
Subject: [PATCH 2/2] ima-evm-utils: Add test for sigfile reading
Date: Sat, 12 Sep 2020 22:36:14 +0300 [thread overview]
Message-ID: <20200912193614.12903-2-vt@altlinux.org> (raw)
In-Reply-To: <20200912193614.12903-1-vt@altlinux.org>
Test reading of detached IMA signature (--sigfile).
Suggested-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
---
tests/sign_verify.test | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/sign_verify.test b/tests/sign_verify.test
index 118c3f6..cddeb15 100755
--- a/tests/sign_verify.test
+++ b/tests/sign_verify.test
@@ -93,7 +93,8 @@ _test_sigfile() {
return "$FAIL"
fi
- rm "$file_sig" "$file_sig2"
+ # Leave '$file_sig' for ima_verify --sigfile test.
+ rm "$file_sig2"
}
# Run single sign command
@@ -254,9 +255,12 @@ sign_verify() {
# Normal verify with proper key should pass
expect_pass check_verify
+ expect_pass check_verify OPTS="--sigfile"
# Multiple files and some don't verify
expect_fail check_verify FILE="/dev/null $file"
+
+ rm "$FILE.sig"
fi
TYPE=evm
--
2.11.0
next prev parent reply other threads:[~2020-09-12 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-12 19:36 [PATCH 1/2] ima-evm-utils: Fix reading of sigfile Vitaly Chikunov
2020-09-12 19:36 ` Vitaly Chikunov [this message]
2020-09-14 0:30 ` [PATCH 2/2] ima-evm-utils: Add test for sigfile reading Mimi Zohar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200912193614.12903-2-vt@altlinux.org \
--to=vt@altlinux.org \
--cc=dmitry.kasatkin@gmail.com \
--cc=linux-integrity@vger.kernel.org \
--cc=zohar@linux.ibm.com \
--cc=zohar@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.