Skip to content

Commit

Permalink
ima: remove unused cleanup functions
Browse files Browse the repository at this point in the history
IMA cannot be used as module and does not need __exit functions.
Removed them.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
  • Loading branch information
Dmitry Kasatkin authored and Mimi Zohar committed Jul 2, 2012
1 parent 0ea4f8a commit c7de7ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions security/integrity/ima/ima_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,3 @@ int __init ima_fs_init(void)
securityfs_remove(ima_policy);
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);
}
5 changes: 0 additions & 5 deletions security/integrity/ima/ima_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,3 @@ int __init ima_init(void)

return ima_fs_init();
}

void __exit ima_cleanup(void)
{
ima_fs_cleanup();
}
5 changes: 0 additions & 5 deletions security/integrity/ima/ima_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,6 @@ static int __init init_ima(void)
return error;
}

static void __exit cleanup_ima(void)
{
ima_cleanup();
}

late_initcall(init_ima); /* Start IMA after the TPM is available */

MODULE_DESCRIPTION("Integrity Measurement Architecture");
Expand Down

0 comments on commit c7de7ad

Please sign in to comment.