lkml.org 
[lkml]   [2006]   [Jul]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 16 Jul 2006 00:57:34 -0400 (EDT)
FromJames Morris <>
SubjectRe: kernel memory leak fix for af_unix datagram getpeersec
On Sun, 16 Jul 2006, Catherine Zhang wrote:

> 
> Hi, Catalin and Michal,
> 
> Enclosed please find the patch against 2.6.18-rc1 that fixed the kernel 
> memory leak problem.

The core kernel code doesn't know anything about secdata, as it is up to 
the LSM to determine what it is (in the case of SELinux, a kmalloc'd 
buffer).

So, you need a cleanup hook which allows the LSM to free the secdata if 
required.


- James
-- 
James Morris
<jmorris@namei.org>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-16 05:01    [from the cache]
©2003-2008