[PATCH] selinux: hooks: security content must be properly cleared

Pirabarlen-Cheenaramen selven at hackers.mu
Sun Apr 23 00:05:51 UTC 2017


Signed-off-by: Pirabarlen-Cheenaramen <selven at hackers.mu>
---
 security/selinux/hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index e67a526..ef3fa80 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -4969,7 +4969,7 @@ static int selinux_tun_dev_alloc_security(void **security)
 
 static void selinux_tun_dev_free_security(void *security)
 {
-	kfree(security);
+	kzfree(security);
 }
 
 static int selinux_tun_dev_create(void)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the Linux-security-module-archive mailing list