All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] evm: Clean up some variables
@ 2022-05-13 17:41 Stefan Berger
  2022-05-16 14:50 ` Mimi Zohar
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Berger @ 2022-05-13 17:41 UTC (permalink / raw)
  To: zohar, linux-integrity; +Cc: linux-kernel, Stefan Berger

Make hmac_tfm static since it's not used anywhere else besides the file
it is in.

Remove declaration of hash_tfm since it doesn't exist.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 security/integrity/evm/evm.h        | 3 ---
 security/integrity/evm/evm_crypto.c | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/security/integrity/evm/evm.h b/security/integrity/evm/evm.h
index 0d44f41d16f8..f8b8c5004fc7 100644
--- a/security/integrity/evm/evm.h
+++ b/security/integrity/evm/evm.h
@@ -38,9 +38,6 @@ extern int evm_initialized;
 
 extern int evm_hmac_attrs;
 
-extern struct crypto_shash *hmac_tfm;
-extern struct crypto_shash *hash_tfm;
-
 /* List of EVM protected security xattrs */
 extern struct list_head evm_config_xattrnames;
 
diff --git a/security/integrity/evm/evm_crypto.c b/security/integrity/evm/evm_crypto.c
index 0450d79afdc8..a733aff02006 100644
--- a/security/integrity/evm/evm_crypto.c
+++ b/security/integrity/evm/evm_crypto.c
@@ -26,7 +26,7 @@
 static unsigned char evmkey[MAX_KEY_SIZE];
 static const int evmkey_len = MAX_KEY_SIZE;
 
-struct crypto_shash *hmac_tfm;
+static struct crypto_shash *hmac_tfm;
 static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
 
 static DEFINE_MUTEX(mutex);
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] evm: Clean up some variables
  2022-05-13 17:41 [PATCH] evm: Clean up some variables Stefan Berger
@ 2022-05-16 14:50 ` Mimi Zohar
  2022-05-16 15:27   ` Stefan Berger
  0 siblings, 1 reply; 4+ messages in thread
From: Mimi Zohar @ 2022-05-16 14:50 UTC (permalink / raw)
  To: Stefan Berger, linux-integrity; +Cc: linux-kernel

On Fri, 2022-05-13 at 13:41 -0400, Stefan Berger wrote:
> Make hmac_tfm static since it's not used anywhere else besides the file
> it is in.
> 
> Remove declaration of hash_tfm since it doesn't exist.
> 
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>

Thanks, Stefan.   Both this patch and "evm: Return INTEGRITY_PASS for
enum integrity_status value '0'"  are now queued in next-integrity.

Mimi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] evm: Clean up some variables
  2022-05-16 14:50 ` Mimi Zohar
@ 2022-05-16 15:27   ` Stefan Berger
  2022-05-16 22:50     ` Mimi Zohar
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Berger @ 2022-05-16 15:27 UTC (permalink / raw)
  To: Mimi Zohar, linux-integrity; +Cc: linux-kernel



On 5/16/22 10:50, Mimi Zohar wrote:
> On Fri, 2022-05-13 at 13:41 -0400, Stefan Berger wrote:
>> Make hmac_tfm static since it's not used anywhere else besides the file
>> it is in.
>>
>> Remove declaration of hash_tfm since it doesn't exist.
>>
>> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> 
> Thanks, Stefan.   Both this patch and "evm: Return INTEGRITY_PASS for
> enum integrity_status value '0'"  are now queued in next-integrity.
> 
> Mimi
> 

There's also this one here:

https://lore.kernel.org/all/20220421175205.798974-1-stefanb@linux.ibm.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] evm: Clean up some variables
  2022-05-16 15:27   ` Stefan Berger
@ 2022-05-16 22:50     ` Mimi Zohar
  0 siblings, 0 replies; 4+ messages in thread
From: Mimi Zohar @ 2022-05-16 22:50 UTC (permalink / raw)
  To: Stefan Berger, linux-integrity; +Cc: linux-kernel

On Mon, 2022-05-16 at 11:27 -0400, Stefan Berger wrote:
> 
> On 5/16/22 10:50, Mimi Zohar wrote:
> > On Fri, 2022-05-13 at 13:41 -0400, Stefan Berger wrote:
> >> Make hmac_tfm static since it's not used anywhere else besides the file
> >> it is in.
> >>
> >> Remove declaration of hash_tfm since it doesn't exist.
> >>
> >> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> > 
> > Thanks, Stefan.   Both this patch and "evm: Return INTEGRITY_PASS for
> > enum integrity_status value '0'"  are now queued in next-integrity.
> > 
> > Mimi
> > 
> 
> There's also this one here:
> 
> https://lore.kernel.org/all/20220421175205.798974-1-stefanb@linux.ibm.com/

Thanks for the reminder.  It's now queued in next-integrity.

Mimi


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-16 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 17:41 [PATCH] evm: Clean up some variables Stefan Berger
2022-05-16 14:50 ` Mimi Zohar
2022-05-16 15:27   ` Stefan Berger
2022-05-16 22:50     ` Mimi Zohar

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.