All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mimi Zohar <zohar@linux.vnet.ibm.com>
To: Petr Vorel <pvorel@suse.cz>
Cc: linux-integrity@vger.kernel.org,
	Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Subject: Re: [PATCH v2 0/2] ima: Fallback to the builtin hash algorithm
Date: Fri, 23 Mar 2018 09:25:58 -0400	[thread overview]
Message-ID: <1521811558.3575.21.camel@linux.vnet.ibm.com> (raw)
In-Reply-To: <20180323105442.nyolkydmggw2uvlx@dell5510>

On Fri, 2018-03-23 at 11:54 +0100, Petr Vorel wrote:
> Hello Mimi,
> 
> > Agreed, the previous version was simpler/better.  My complaint with
> > the previous version was that there was an error message, but
> > continued without any indication of how it was resolved.  Changing the
> > message in ima_init_crypto() is one solution, but adding an additional
> > message works too. Would this work for you?
> 
> > @@ -73,6 +73,8 @@ int __init ima_init_crypto(void)
> >                        hash_algo_name[ima_hash_algo], rc);
> >                 return rc;
> >         }
> > +       pr_info("Allocated default hash algorithm: %s\n",
> > +                hash_algo_name[ima_hash_algo]);
> >         return 0;
> >  }
> Well, this is not correct, as if you specify correct (i.e. buildin) non default algorithm, it's said to
> be the default. e.g. ima_hash=md5
> [    2.161089] ima: Allocated default hash algorithm: md5
> Just a detail, but why not be precise?
> Going to post a version which fixes that having a message in ima_init_crypto().

Oh, I see your point!  If a file is signed, the measurement list will
contain the file hash based on the file signature's hash algorithm.
"default", in this case, refers to the hash algorithm for unsigned
files.

Thank you for making the message clearer, less ambiguous.

Mimi

      reply	other threads:[~2018-03-23 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 14:43 [PATCH v2 0/2] ima: Fallback to the builtin hash algorithm Petr Vorel
2018-03-22 14:43 ` [PATCH v2 1/2] ima: Introduce ima_alloc_alg() to reduce duplicity Petr Vorel
2018-03-22 14:43 ` [PATCH v2 2/2] ima: Fallback to the builtin hash algorithm Petr Vorel
2018-03-22 19:38 ` [PATCH v2 0/2] " Mimi Zohar
2018-03-23 10:54   ` Petr Vorel
2018-03-23 13:25     ` Mimi Zohar [this message]

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=1521811558.3575.21.camel@linux.vnet.ibm.com \
    --to=zohar@linux.vnet.ibm.com \
    --cc=dmitry.kasatkin@gmail.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=pvorel@suse.cz \
    /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.