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-07-04 12:55:45 -07:00
2006-07-04 12:55:45 -07:00
2006-06-29 08:55:41 +01:00
2006-07-04 12:55:45 -07:00
2006-07-04 12:55:45 -07:00
2006-07-10 13:24:27 -07:00
2006-07-10 13:24:16 -07:00
2006-06-28 15:51:01 -07:00
2006-07-04 12:55:45 -07:00
2006-07-12 16:03:25 -07:00
2006-06-28 14:59:06 -07:00
2006-06-29 16:58:19 -07:00
2006-07-01 07:44:10 -04:00
2006-07-06 10:18:05 +02:00
2006-07-10 13:24:21 -07:00
2006-07-31 13:28:36 -07:00
2006-06-28 14:59:04 -07:00
2006-07-10 13:24:14 -07:00
2006-07-10 13:24:16 -07:00
2006-07-23 12:12:16 -07:00
2006-07-26 07:21:40 -07:00
2006-07-03 15:27:06 -07:00
2006-07-03 15:27:01 -07:00
2006-07-31 13:28:37 -07:00
2006-07-03 19:44:51 -07:00
2006-06-30 18:25:18 +02:00
2006-06-28 14:59:04 -07:00
2006-06-29 21:10:50 +01:00
2006-07-10 13:24:22 -07:00
2006-07-01 09:56:03 -07:00
2006-07-31 13:28:36 -07:00
2006-07-31 13:28:44 -07:00
2006-07-10 13:24:21 -07:00
2006-07-28 21:02:00 -07:00
2006-07-03 15:27:03 -07:00
2006-07-12 13:59:06 -07:00
2006-07-03 15:27:07 -07:00
2006-07-14 21:53:53 -07:00
2006-07-12 15:43:07 -07:00
2006-07-28 08:54:59 +02:00
2006-07-03 15:27:02 -07:00
2006-07-14 16:34:22 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-12 16:09:08 -07:00
2006-06-27 17:32:48 -07:00
2006-07-31 13:28:39 -07:00
2006-07-03 15:27:03 -07:00
2006-07-31 13:28:43 -07:00
2006-07-03 15:27:00 -07:00
2006-06-28 14:59:05 -07:00
2006-07-04 14:00:06 -07:00
2006-07-10 13:24:22 -07:00
2006-06-29 10:26:20 -07:00
2006-07-14 21:53:52 -07:00
2006-07-19 14:06:53 -04:00
2006-07-14 21:53:56 -07:00
2006-07-10 13:24:14 -07:00
2006-07-10 13:24:25 -07:00
2006-07-03 15:27:01 -07:00
2006-07-03 15:26:59 -07:00
2006-07-14 21:53:52 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:04 -07:00
2006-07-14 21:53:55 -07:00
2006-06-29 16:58:06 -07:00
2006-07-21 14:55:38 -07:00
2006-08-02 13:38:15 -07:00
2006-07-10 13:24:27 -07:00
2006-06-30 19:25:36 +02:00
2006-06-28 16:52:45 -04:00
2006-07-03 15:27:02 -07:00
2006-07-14 21:53:54 -07:00
2006-06-30 11:25:35 -07:00
2006-06-30 11:25:34 -07:00
2006-07-05 23:02:48 -04:00
2006-07-12 16:05:48 -07:00
2006-07-12 16:05:48 -07:00
2006-06-28 15:54:27 -07:00
2006-07-12 16:09:08 -07:00
2006-07-31 13:28:45 -07:00
2006-07-03 19:48:25 -07:00
2006-06-30 11:25:39 -07:00
2006-06-28 14:59:04 -07:00
2006-07-13 13:21:35 -07:00
2006-06-30 11:25:38 -07:00
2006-07-03 15:27:01 -07:00
2006-07-03 15:27:04 -07:00
2006-07-10 13:24:14 -07:00
2006-07-14 21:53:57 -07:00
2006-06-27 17:32:42 -07:00
2006-08-02 14:12:06 -07:00
2006-07-03 15:27:02 -07:00
2006-07-09 21:11:09 +01:00
2006-07-02 13:58:46 -07:00
2006-08-02 14:07:58 -07:00
2006-06-30 11:25:37 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:04 -07:00
2006-07-03 15:27:02 -07:00
2006-07-03 15:26:59 -07:00
2006-06-27 17:32:46 -07:00
2006-07-03 15:26:59 -07:00
2006-07-14 21:53:57 -07:00
2006-07-14 21:53:57 -07:00
2006-07-14 21:53:56 -07:00
2006-06-27 17:32:45 -07:00
2006-06-28 14:59:05 -07:00
2006-07-10 13:24:16 -07:00
2006-06-30 18:25:18 +02:00
2006-07-01 09:56:03 -07:00
2006-07-12 16:03:21 -07:00
2006-07-12 16:03:24 -07:00
2006-07-12 16:03:22 -07:00
2006-07-12 16:03:20 -07:00
2006-07-03 23:30:54 +02:00
2006-07-29 17:22:29 -03:00
2006-07-29 17:22:30 -03:00
2006-07-14 21:53:51 -07:00
2006-07-10 13:24:18 -07:00
2006-07-10 13:24:16 -07:00
2006-07-10 13:24:16 -07:00
2006-07-10 13:24:25 -07:00
2006-06-30 01:33:31 -04:00