[PATCH RFC 06/11] Smack: remove socket blob free

Casey Schaufler casey at schaufler-ca.com
Wed Apr 5 21:53:32 UTC 2017


Subject: [PATCH RFC 06/11] Smack: remove socket blob free.

With stacking in place the infrastructure releases the
socket blob, so the module shouldn't.

Signed-off-by: Casey Schaufler <casey at schaufler-ca.com>

---
 security/smack/smack_lsm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 7c8ffe4..e1264b9 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -2272,7 +2272,6 @@ static void smack_sk_free_security(struct sock *sk)
 		}
 		rcu_read_unlock();
 	}
-	kfree(sk->sk_security);
 }
 #endif
 

--
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