linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
To: Vitaly Chikunov <vt@altlinux.org>,
	Mimi Zohar <zohar@linux.ibm.com>,
	linux-integrity@vger.kernel.org
Subject: Re: [PATCH v8 1/2] ima-evm-utils: Add some tests for evmctl
Date: Mon, 30 Mar 2020 09:29:29 -0700	[thread overview]
Message-ID: <f6c1766f-20c0-782d-0c3c-a522babd9142@linux.microsoft.com> (raw)
In-Reply-To: <f9b36972-df5d-db9a-d840-52e9ff76d271@linux.microsoft.com>

On 3/30/20 9:16 AM, Lakshmi Ramasubramanian wrote:

> On 3/26/20 9:25 PM, Vitaly Chikunov wrote:
> 
>> Run `make check' to execute the tests.
> 
> autogen.sh followed by configure need to be run. Could you please add 
> that in the patch description?
> 
>> diff --git a/tests/functions.sh b/tests/functions.sh
>> new file mode 100755
>> index 0000000..16c8d89
>> --- /dev/null
>> +++ b/tests/functions.sh
>> @@ -0,0 +1,272 @@
>> +#!/bin/bash
>> +# SPDX-License-Identifier: GPL-2.0
> 
> In some source files in the kernel repo I have seen the following:
> 
>      // SPDX-License-Identifier: GPL-2.0+
> 
> Not sure if it is applicable here.
> 
>> +check() {
>> +  local alg=$1 pref=$2 chash=$3 hash
>> +  local file=$alg-hash.txt
>> +
>> +  rm -f $file
>> +  touch $file
>> +  # Generate hash with openssl, if it's failed skip test,
> 
> "if it failed skip test"
> 
>> +  # unless it's negative test, then pass to evmctl
>> +  cmd="openssl dgst $OPENSSL_ENGINE -$alg $file"
>> +}
>> +
> 
>> +# check args: algo hdr-prefix canonic-hash
>> +expect_pass check  md4        0x01 31d6cfe0d16ae931b73c59d7e0c089c0
>> +expect_pass check  md5        0x01 d41d8cd98f00b204e9800998ecf8427e
> Is MD4 and MD5 tests still needed?
> 
> 
>   -lakshmi

+ Mimi and linux-integrity

  parent reply	other threads:[~2020-03-30 16:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27  4:25 [PATCH v8 0/2] ima-evm-utils: Add some tests for evmctl Vitaly Chikunov
2020-03-27  4:25 ` [PATCH v8 1/2] " Vitaly Chikunov
     [not found]   ` <f9b36972-df5d-db9a-d840-52e9ff76d271@linux.microsoft.com>
2020-03-30 16:29     ` Lakshmi Ramasubramanian [this message]
2020-03-30 17:11       ` Vitaly Chikunov
2020-03-31 14:25   ` Mimi Zohar
2020-03-31 15:14     ` Vitaly Chikunov
2020-03-31 16:04       ` Mimi Zohar
2020-03-27  4:25 ` [PATCH v8 2/2] ima-evm-utils: Add sign/verify " Vitaly Chikunov
     [not found]   ` <98cfccc0-2191-6072-aebe-296e6e150e0c@linux.microsoft.com>
2020-03-30 16:29     ` Lakshmi Ramasubramanian
2020-03-30 17:16       ` Vitaly Chikunov
2020-04-01 18:00   ` Mimi Zohar
2020-04-02  7:19     ` Vitaly Chikunov
2020-04-02 11:14       ` Mimi Zohar
     [not found] ` <d39b433e-4504-d0a4-116f-dd33ca238f7f@linux.microsoft.com>
2020-03-30 16:28   ` [PATCH v8 0/2] ima-evm-utils: Add some " Lakshmi Ramasubramanian
2020-03-30 17:47     ` James Bottomley

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=f6c1766f-20c0-782d-0c3c-a522babd9142@linux.microsoft.com \
    --to=nramas@linux.microsoft.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=vt@altlinux.org \
    --cc=zohar@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).