evm: remove unused cleanup functions
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 3 Sep 2012 14:11:56 +0000 (17:11 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 16 Jan 2013 20:47:05 +0000 (15:47 -0500)
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>
security/integrity/evm/evm.h
security/integrity/evm/evm_main.c
security/integrity/evm/evm_secfs.c

index c885247ebcf7d7b64c5f97ac0449e75488de317b..3eb30c6db4194d870c66a1ee7ea359ffa002a355 100644 (file)
@@ -45,6 +45,5 @@ extern int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name,
 extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr,
                         char *hmac_val);
 extern int evm_init_secfs(void);
-extern void evm_cleanup_secfs(void);
 
 #endif
index eb5484504f506490eb7c4f90a81cba92b7020c40..a78a5e21ef70ea3b951db6ddc347c2268e1363b2 100644 (file)
@@ -427,15 +427,6 @@ err:
        return error;
 }
 
-static void __exit cleanup_evm(void)
-{
-       evm_cleanup_secfs();
-       if (hmac_tfm)
-               crypto_free_shash(hmac_tfm);
-       if (hash_tfm)
-               crypto_free_shash(hash_tfm);
-}
-
 /*
  * evm_display_config - list the EVM protected security extended attributes
  */
index ac7629950578edea449e196a520512a197834770..30f670ad6ac3a63ce98db857ad812eab144d6419 100644 (file)
@@ -100,9 +100,3 @@ int __init evm_init_secfs(void)
                error = -EFAULT;
        return error;
 }
-
-void __exit evm_cleanup_secfs(void)
-{
-       if (evm_init_tpm)
-               securityfs_remove(evm_init_tpm);
-}