Commit c7de7adc authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by Mimi Zohar

ima: remove unused cleanup functions

IMA cannot be used as module and does not need __exit functions.
Removed them.
Signed-off-by: default avatarDmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent 0ea4f8ae
...@@ -375,13 +375,3 @@ int __init ima_fs_init(void) ...@@ -375,13 +375,3 @@ int __init ima_fs_init(void)
securityfs_remove(ima_policy); securityfs_remove(ima_policy);
return -1; return -1;
} }
void __exit ima_fs_cleanup(void)
{
securityfs_remove(violations);
securityfs_remove(runtime_measurements_count);
securityfs_remove(ascii_runtime_measurements);
securityfs_remove(binary_runtime_measurements);
securityfs_remove(ima_dir);
securityfs_remove(ima_policy);
}
...@@ -90,8 +90,3 @@ int __init ima_init(void) ...@@ -90,8 +90,3 @@ int __init ima_init(void)
return ima_fs_init(); return ima_fs_init();
} }
void __exit ima_cleanup(void)
{
ima_fs_cleanup();
}
...@@ -262,11 +262,6 @@ static int __init init_ima(void) ...@@ -262,11 +262,6 @@ static int __init init_ima(void)
return error; return error;
} }
static void __exit cleanup_ima(void)
{
ima_cleanup();
}
late_initcall(init_ima); /* Start IMA after the TPM is available */ late_initcall(init_ima); /* Start IMA after the TPM is available */
MODULE_DESCRIPTION("Integrity Measurement Architecture"); MODULE_DESCRIPTION("Integrity Measurement Architecture");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment