Re: [PATCH] SELinux: Fix double free in selinux_netlbl_sock_setsid()

2008-01-29 Thread Paul Moore
On Monday 28 January 2008 10:51:24 pm David Miller wrote: > From: Paul Moore <[EMAIL PROTECTED]> > Date: Mon, 28 Jan 2008 21:20:26 -0500 > > > As pointed out by Adrian Bunk, commit > > 45c950e0f839fded922ebc0bfd59b1081cc71b70 caused a double-free when > > security_netlbl_sid_to_secattr() fails. Th

Re: [PATCH] SELinux: Fix double free in selinux_netlbl_sock_setsid()

2008-01-28 Thread David Miller
From: Paul Moore <[EMAIL PROTECTED]> Date: Mon, 28 Jan 2008 21:20:26 -0500 > As pointed out by Adrian Bunk, commit 45c950e0f839fded922ebc0bfd59b1081cc71b70 > caused a double-free when security_netlbl_sid_to_secattr() fails. This patch > fixes this by removing the netlbl_secattr_destroy() call fro

[PATCH] SELinux: Fix double free in selinux_netlbl_sock_setsid()

2008-01-28 Thread Paul Moore
As pointed out by Adrian Bunk, commit 45c950e0f839fded922ebc0bfd59b1081cc71b70 caused a double-free when security_netlbl_sid_to_secattr() fails. This patch fixes this by removing the netlbl_secattr_destroy() call from that function since we are already releasing the secattr memory in selinux_netlb