Files
linux-apfs/include/linux
Catherine Zhang dc49c1f94e [AF_UNIX]: Kernel memory leak fix for af_unix datagram getpeersec patch
From: Catherine Zhang <cxzhang@watson.ibm.com>

This patch implements a cleaner fix for the memory leak problem of the
original unix datagram getpeersec patch.  Instead of creating a
security context each time a unix datagram is sent, we only create the
security context when the receiver requests it.

This new design requires modification of the current
unix_getsecpeer_dgram LSM hook and addition of two new hooks, namely,
secid_to_secctx and release_secctx.  The former retrieves the security
context and the latter releases it.  A hook is required for releasing
the security context because it is up to the security module to decide
how that's done.  In the case of Selinux, it's a simple kfree
operation.

Acked-by:  Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-08-02 14:12:06 -07:00
..
2006-06-29 08:55:41 +01:00
2006-07-01 07:44:10 -04:00
2006-07-03 15:27:06 -07:00
2006-07-03 19:44:51 -07:00
2006-07-01 09:56:03 -07:00
2006-07-28 21:02:00 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-31 13:28:39 -07:00
2006-07-03 15:27:00 -07:00
2006-07-14 21:53:56 -07:00
2006-07-03 15:27:01 -07:00
2006-07-14 21:53:55 -07:00
2006-06-29 16:58:06 -07:00
2006-06-28 16:52:45 -04:00
2006-07-05 23:02:48 -04:00
2006-07-12 16:05:48 -07:00
2006-06-28 15:54:27 -07:00
2006-07-03 19:48:25 -07:00
2006-06-30 11:25:38 -07:00
2006-06-30 11:25:37 -07:00
2006-06-30 18:25:18 +02:00
2006-07-12 16:03:20 -07:00
2006-07-03 23:30:54 +02:00
2006-07-10 13:24:25 -07:00