summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>2012-01-30 00:19:08 (GMT)
committerMimi Zohar <zohar@linux.vnet.ibm.com>2012-07-02 20:43:30 (GMT)
commit0ea4f8ae416a9e8d15f4e20680879358f620e8b8 (patch)
tree68c03378249e4d3c543f5c6bf3833774a3c58adb /security
parent08e1b76ae399a010c0d0916b125d75aed6961d16 (diff)
downloadlinux-0ea4f8ae416a9e8d15f4e20680879358f620e8b8.tar.xz
ima: free securityfs violations file
On ima_fs_init() error, free securityfs violations file. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com> Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/integrity/ima/ima_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_fs.c b/security/integrity/ima/ima_fs.c
index e1aa2b4..3fccc06 100644
--- a/security/integrity/ima/ima_fs.c
+++ b/security/integrity/ima/ima_fs.c
@@ -367,6 +367,7 @@ int __init ima_fs_init(void)
return 0;
out:
+ securityfs_remove(violations);
securityfs_remove(runtime_measurements_count);
securityfs_remove(ascii_runtime_measurements);
securityfs_remove(binary_runtime_measurements);