linux/security/integrity/evm
Dmitry Kasatkin 26ddabfe96 evm: enable EVM when X509 certificate is loaded
In order to enable EVM before starting the 'init' process,
evm_initialized needs to be non-zero.  Previously non-zero indicated
that the HMAC key was loaded.  When EVM loads the X509 before calling
'init', with this patch it is now possible to enable EVM to start
signature based verification.

This patch defines bits to enable EVM if a key of any type is loaded.

Changes in v3:
* print error message if key is not set

Changes in v2:
* EVM_STATE_KEY_SET replaced by EVM_INIT_HMAC
* EVM_STATE_X509_SET replaced by EVM_INIT_X509

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
2015-12-15 08:50:48 -05:00
..
evm_crypto.c evm: enable EVM when X509 certificate is loaded 2015-12-15 08:50:48 -05:00
evm_main.c evm: enable EVM when X509 certificate is loaded 2015-12-15 08:50:48 -05:00
evm_posix_acl.c ima: fix script messages 2013-10-25 13:17:19 -04:00
evm_secfs.c evm: enable EVM when X509 certificate is loaded 2015-12-15 08:50:48 -05:00
evm.h evm: enable EVM when X509 certificate is loaded 2015-12-15 08:50:48 -05:00
Kconfig evm: load an x509 certificate from the kernel 2015-12-15 08:31:19 -05:00
Makefile evm: posix acls modify i_mode 2011-09-14 15:24:51 -04:00