mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
security/integrity: constify some read-only data
Constify some static data that is never modified, so that it is placed in .rodata. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
691115c351
commit
b2724d5802
8 changed files with 16 additions and 13 deletions
|
@ -27,7 +27,7 @@
|
|||
#define EVMKEY "evm-key"
|
||||
#define MAX_KEY_SIZE 128
|
||||
static unsigned char evmkey[MAX_KEY_SIZE];
|
||||
static int evmkey_len = MAX_KEY_SIZE;
|
||||
static const int evmkey_len = MAX_KEY_SIZE;
|
||||
|
||||
struct crypto_shash *hmac_tfm;
|
||||
static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
|
||||
|
@ -38,7 +38,7 @@ static DEFINE_MUTEX(mutex);
|
|||
|
||||
static unsigned long evm_set_key_flags;
|
||||
|
||||
static char * const evm_hmac = "hmac(sha1)";
|
||||
static const char evm_hmac[] = "hmac(sha1)";
|
||||
|
||||
/**
|
||||
* evm_set_key() - set EVM HMAC key from the kernel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue