Linux Integrity Measurement development
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Mimi Zohar <zohar@linux.ibm.com>
Cc: linux-integrity@vger.kernel.org,
	Vitaly Chikunov <vt@altlinux.org>,
	Bruno Meneguele <bmeneg@redhat.com>
Subject: Re: [ima-evm-utils][PATCH] Install the swtpm package, if available
Date: Mon, 17 Aug 2020 11:11:37 +0200	[thread overview]
Message-ID: <20200817091137.GA26170@dell5510> (raw)
In-Reply-To: <d631253ca491bcdfe48ebd68a5acf7f26d75fb22.camel@linux.ibm.com>

Hi Mimi,

> Note: Some travis/<distro>.sh scripts are links to other scripts.
> Don't fail the build of the linked script if the swtpm package doesn't
> exist.
...
> --- a/travis/fedora.sh
> +++ b/travis/fedora.sh
> @@ -41,6 +41,7 @@ yum -y install \
>         which
> 
>  yum -y install docbook5-style-xsl || true
> +yum -y install swtpm || true
Yes, that's probably the best way how to solve.
Sometimes I also passed $INSTALL to the script and had if clause.


> On Sun, 2020-08-16 at 15:36 -0400, Mimi Zohar wrote:
> >  # Only stop this test's software TPM.  Preferred method: "tsstpmcmd -stop"
> > @@ -48,22 +52,36 @@ cleanup() {

> >  # Try to start a software TPM if needed.
> >  swtpm_start() {
> > -       local swtpm
> > +       local swtpm swtpm1

> >         swtpm="$(which tpm_server)"
> > -       if [ -z "${swtpm}" ]; then
> > -               echo "${CYAN}SKIP: Softare TPM (tpm_server) not found${NORM}"
> > +       swtpm1="$(which swtpm)"
> > +       if [ -z "${swtpm}" ] && [ -z "${swptm1}" ]; then

> Need to fix "swptm1" typo.
+1

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Also, not related to this commit:
* add pgrep and pkill to _require (fix of a different commit)
* add magic constant 114 to exit codes (in tests/functions.sh)
* I'd like reuse exit codes in build.sh. I could source tests/functions.sh (they
look to be general enough, just I didn't like script in root directory depending
on it, as it's general enough for build without testing) have these constants in
separate file.

Kind regards,
Petr

  reply	other threads:[~2020-08-17  9:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-16 19:36 [ima-evm-utils][PATCH] Install the swtpm package, if available Mimi Zohar
2020-08-16 20:32 ` Mimi Zohar
2020-08-17  9:11   ` Petr Vorel [this message]
2020-08-17 14:31 ` Bruno Meneguele
2020-08-17 18:11 ` Stefan Berger

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=20200817091137.GA26170@dell5510 \
    --to=pvorel@suse.cz \
    --cc=bmeneg@redhat.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