original_kernel/security
Dmitry Kasatkin 6d38ca01c0 evm: evm_verify_hmac must not return INTEGRITY_UNKNOWN
If EVM is not supported or enabled, evm_verify_hmac() returns
INTEGRITY_UNKNOWN, which ima_appraise_measurement() ignores and sets
the appraisal status based solely on the security.ima verification.

evm_verify_hmac() also returns INTEGRITY_UNKNOWN for other failures, such
as temporary failures like -ENOMEM, resulting in possible attack vectors.
This patch changes the default return code for temporary/unexpected
failures, like -ENOMEM, from INTEGRITY_UNKNOWN to INTEGRITY_FAIL, making
evm_verify_hmac() fail safe.

As a result, failures need to be re-evaluated in order to catch both
temporary errors, such as the -ENOMEM, as well as errors that have been
resolved in fix mode.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
2011-07-18 12:29:48 -04:00
..
apparmor AppArmor: Fix masking of capabilities in complain mode 2011-06-29 02:04:44 +01:00
integrity evm: evm_verify_hmac must not return INTEGRITY_UNKNOWN 2011-07-18 12:29:48 -04:00
keys Merge branch 'linus' into next 2011-06-30 18:43:56 +10:00
selinux
smack
tomoyo TOMOYO: Update kernel-doc. 2011-07-14 17:50:03 +10:00
Kconfig integrity: move ima inode integrity data management 2011-07-18 12:29:38 -04:00
Makefile integrity: move ima inode integrity data management 2011-07-18 12:29:38 -04:00
capability.c
commoncap.c
device_cgroup.c
inode.c
lsm_audit.c
min_addr.c
security.c evm: call evm_inode_init_security from security_inode_init_security 2011-07-18 12:29:45 -04:00