Re: kernel memory leak fix for af_unix datagram getpeersec

From: James Morris
Date: Sun Jul 16 2006 - 01:03:33 EST

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

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

- James
James Morris
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at