summaryrefslogtreecommitdiffstats
path: root/security/integrity/evm/evm.h
diff options
context:
space:
mode:
authorMatthew Garrett2018-05-12 01:12:35 +0200
committerMimi Zohar2018-05-18 21:34:36 +0200
commit21af76631476030709f85f48e20bb9429a912b6f (patch)
tree787cb3a9d80665d4d55afe7b727dff40d334b15c /security/integrity/evm/evm.h
parentintegrity: Add an integrity directory in securityfs (diff)
downloadkernel-qcow2-linux-21af76631476030709f85f48e20bb9429a912b6f.tar.gz
kernel-qcow2-linux-21af76631476030709f85f48e20bb9429a912b6f.tar.xz
kernel-qcow2-linux-21af76631476030709f85f48e20bb9429a912b6f.zip
EVM: turn evm_config_xattrnames into a list
Use a list of xattrs rather than an array - this makes it easier to extend the list at runtime. Signed-off-by: Matthew Garrett <mjg59@google.com> Reviewed-by: James Morris <james.morris@microsoft.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/evm/evm.h')
-rw-r--r--security/integrity/evm/evm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/integrity/evm/evm.h b/security/integrity/evm/evm.h
index 45c4a89c02ff..1257c3c24723 100644
--- a/security/integrity/evm/evm.h
+++ b/security/integrity/evm/evm.h
@@ -30,6 +30,11 @@
#define EVM_INIT_MASK (EVM_INIT_HMAC | EVM_INIT_X509 | EVM_SETUP_COMPLETE | \
EVM_ALLOW_METADATA_WRITES)
+struct xattr_list {
+ struct list_head list;
+ char *name;
+};
+
extern int evm_initialized;
#define EVM_ATTR_FSUUID 0x0001
@@ -40,7 +45,7 @@ extern struct crypto_shash *hmac_tfm;
extern struct crypto_shash *hash_tfm;
/* List of EVM protected security xattrs */
-extern char *evm_config_xattrnames[];
+extern struct list_head evm_config_xattrnames;
int evm_init_key(void);
int evm_update_evmxattr(struct dentry *dentry,