Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

evm: remove unused cleanup functions

EVM cannot be built as a kernel module. Remove the unncessary __exit
functions.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>

authored by

Dmitry Kasatkin and committed by
Mimi Zohar
e9080565 7163a993

-16
-1
security/integrity/evm/evm.h
··· 45 45 extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr, 46 46 char *hmac_val); 47 47 extern int evm_init_secfs(void); 48 - extern void evm_cleanup_secfs(void); 49 48 50 49 #endif
-9
security/integrity/evm/evm_main.c
··· 427 427 return error; 428 428 } 429 429 430 - static void __exit cleanup_evm(void) 431 - { 432 - evm_cleanup_secfs(); 433 - if (hmac_tfm) 434 - crypto_free_shash(hmac_tfm); 435 - if (hash_tfm) 436 - crypto_free_shash(hash_tfm); 437 - } 438 - 439 430 /* 440 431 * evm_display_config - list the EVM protected security extended attributes 441 432 */
-6
security/integrity/evm/evm_secfs.c
··· 100 100 error = -EFAULT; 101 101 return error; 102 102 } 103 - 104 - void __exit evm_cleanup_secfs(void) 105 - { 106 - if (evm_init_tpm) 107 - securityfs_remove(evm_init_tpm); 108 - }