ima: free securityfs violations file
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 30 Jan 2012 00:19:08 +0000 (19:19 -0500)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 2 Jul 2012 20:43:30 +0000 (16:43 -0400)
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>
security/integrity/ima/ima_fs.c

index e1aa2b482dd2c5ae064a024656baa3f524c3a4aa..3fccc065a0fb4164c24d3737f55b30c3c2754a24 100644 (file)
@@ -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);