ima: free securityfs violations file
Dmitry Kasatkin [Mon, 30 Jan 2012 00:19:08 +0000 (19:19 -0500)]
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 e1aa2b4..3fccc06 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);