Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-05 Thread Jarkko Sakkinen
On Wed, Jul 04, 2018 at 08:10:03AM -0400, Mimi Zohar wrote: > > > Jarkko, would you mind staging this patch with the rest of the patch > > > set? > > > > Yes, sure, I can do that. Any additional tag? > > Thanks, just these. I pushed the changes to my tree (also next). > Mimi /Jarkko

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-05 Thread Jarkko Sakkinen
On Wed, Jul 04, 2018 at 08:10:03AM -0400, Mimi Zohar wrote: > > > Jarkko, would you mind staging this patch with the rest of the patch > > > set? > > > > Yes, sure, I can do that. Any additional tag? > > Thanks, just these. I pushed the changes to my tree (also next). > Mimi /Jarkko

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-04 Thread Mimi Zohar
On Tue, 2018-07-03 at 19:32 +0300, Jarkko Sakkinen wrote: > On Mon, 2018-07-02 at 13:00 -0400, Mimi Zohar wrote: > > On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > > > Rather than accessing the TPM functions by passing a NULL pointer for > > > the tpm_chip, which causes a lookup for a

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-04 Thread Mimi Zohar
On Tue, 2018-07-03 at 19:32 +0300, Jarkko Sakkinen wrote: > On Mon, 2018-07-02 at 13:00 -0400, Mimi Zohar wrote: > > On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > > > Rather than accessing the TPM functions by passing a NULL pointer for > > > the tpm_chip, which causes a lookup for a

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-03 Thread Jarkko Sakkinen
On Mon, 2018-07-02 at 13:00 -0400, Mimi Zohar wrote: > On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > > Rather than accessing the TPM functions by passing a NULL pointer for > > the tpm_chip, which causes a lookup for a suitable chip every time, get a > > hold of a tpm_chip and access

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-03 Thread Jarkko Sakkinen
On Mon, 2018-07-02 at 13:00 -0400, Mimi Zohar wrote: > On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > > Rather than accessing the TPM functions by passing a NULL pointer for > > the tpm_chip, which causes a lookup for a suitable chip every time, get a > > hold of a tpm_chip and access

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-02 Thread Mimi Zohar
On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > Rather than accessing the TPM functions by passing a NULL pointer for > the tpm_chip, which causes a lookup for a suitable chip every time, get a > hold of a tpm_chip and access the TPM functions using it. Also get rid of > the

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-02 Thread Mimi Zohar
On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > Rather than accessing the TPM functions by passing a NULL pointer for > the tpm_chip, which causes a lookup for a suitable chip every time, get a > hold of a tpm_chip and access the TPM functions using it. Also get rid of > the

[PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-02 Thread Stefan Berger
Rather than accessing the TPM functions by passing a NULL pointer for the tpm_chip, which causes a lookup for a suitable chip every time, get a hold of a tpm_chip and access the TPM functions using it. Also get rid of the ima_used_chip variable and use the new ima_tpm_chip variable instead for

[PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-02 Thread Stefan Berger
Rather than accessing the TPM functions by passing a NULL pointer for the tpm_chip, which causes a lookup for a suitable chip every time, get a hold of a tpm_chip and access the TPM functions using it. Also get rid of the ima_used_chip variable and use the new ima_tpm_chip variable instead for