ima: Remove needless securityfs_remove() calls
diff mbox series

Message ID 1563172778-37226-1-git-send-email-zhangliguang@linux.alibaba.com
State New
Headers show
Series
  • ima: Remove needless securityfs_remove() calls
Related show

Commit Message

乱石 July 15, 2019, 6:39 a.m. UTC
Function securityfs_remove() is called when securityfs_create_file
failed, this is needless. And dentry ima_policy is removed after ima_dir
is illogical.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
---
 security/integrity/ima/ima_fs.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox series

diff --git a/security/integrity/ima/ima_fs.c b/security/integrity/ima/ima_fs.c
index 2000e8d..9c60ddc 100644
--- a/security/integrity/ima/ima_fs.c
+++ b/security/integrity/ima/ima_fs.c
@@ -501,6 +501,5 @@  int __init ima_fs_init(void)
 	securityfs_remove(binary_runtime_measurements);
 	securityfs_remove(ima_symlink);
 	securityfs_remove(ima_dir);
-	securityfs_remove(ima_policy);
 	return -1;
 }