Serge E. Hallyn
47a150edc2
Cache user_ns in struct cred
...
If !CONFIG_USERNS, have current_user_ns() defined to (&init_user_ns).
Get rid of _current_user_ns. This requires nsown_capable() to be
defined in capability.c rather than as static inline in capability.h,
so do that.
Request_key needs init_user_ns defined at current_user_ns if
!CONFIG_USERNS, so forward-declare that in cred.h if !CONFIG_USERNS
at current_user_ns() define.
Compile-tested with and without CONFIG_USERNS.
Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com>
[ This makes a huge performance difference for acl_permission_check(),
up to 30%. And that is one of the hottest kernel functions for loads
that are pathname-lookup heavy. ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-05-13 11:45:33 -07:00
..
2011-03-31 11:26:23 -03:00
2011-03-20 18:14:55 -07:00
2011-05-02 21:16:37 +02:00
2011-05-11 21:10:58 +02:00
2011-04-18 10:39:38 +02:00
2011-05-06 13:20:59 -07:00
2011-03-31 11:26:23 -03:00
2011-03-14 09:15:23 -04:00
2011-03-03 10:55:40 -08:00
2011-03-03 10:55:40 -08:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:46:28 -07:00
2011-05-13 11:45:33 -07:00
2011-03-31 11:26:23 -03:00
2011-02-02 15:28:19 +01:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:46:35 -07:00
2011-03-23 19:47:19 -07:00
2011-05-13 11:45:33 -07:00
2011-04-25 17:28:24 +02:00
2011-03-24 10:16:26 -07:00
2010-12-24 15:02:40 +01:00
2011-03-23 19:47:08 -07:00
2011-04-15 16:34:32 +02:00
2011-03-23 19:47:08 -07:00
2011-04-29 10:57:11 +02:00
2010-12-16 11:36:43 +01:00
2010-12-18 15:54:48 +01:00
2011-03-25 17:52:22 -07:00
2011-04-20 00:36:11 +02:00
2011-01-07 17:02:58 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-23 13:54:47 +01:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:47:19 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:47:08 -07:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:11 -07:00
2011-03-31 11:26:23 -03:00
2011-04-11 11:07:55 +02:00
2011-03-23 19:46:58 -07:00
2011-04-18 10:35:30 -07:00
2011-03-15 00:43:18 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-22 17:44:13 -07:00
2011-04-25 17:28:24 +02:00
2011-03-04 08:05:41 -08:00
2011-03-04 08:05:08 -08:00
2011-01-14 04:58:08 -08:00
2011-03-04 08:05:17 -08:00
2010-12-17 12:34:08 -08:00
2010-11-29 22:01:58 -08:00
2011-01-07 17:02:58 -08:00
2010-12-17 12:34:20 -08:00
2011-03-23 19:46:22 -07:00
2010-12-17 10:01:09 -08:00
2011-01-27 21:13:51 -05:00
2011-01-27 21:13:51 -05:00
2011-02-22 22:07:22 +01:00
2011-01-27 21:13:51 -05:00
2011-03-31 11:26:23 -03:00
2011-02-23 11:33:59 +01:00
2010-11-23 10:29:08 +01:00
2011-02-03 14:20:33 +01:00
2011-04-11 11:08:54 +02:00
2011-03-23 14:09:41 +01:00
2011-03-31 11:26:23 -03:00
2011-03-23 14:09:41 +01:00
2011-04-16 13:27:55 +02:00
2011-04-08 11:05:24 -07:00
2011-03-22 17:44:11 -07:00
2011-03-31 11:26:23 -03:00
2011-01-14 04:56:49 -08:00
2011-03-22 17:44:01 -07:00
2011-03-15 02:21:44 -04:00
2011-03-23 19:47:06 -07:00
2011-03-14 09:15:28 -04:00
2011-03-23 19:46:51 -07:00
2011-03-23 19:46:54 -07:00
2011-03-23 19:47:14 -07:00
2011-03-15 18:53:35 -07:00
2011-03-15 18:53:35 -07:00
2011-02-03 09:28:46 -05:00
2011-03-23 19:47:08 -07:00
2011-01-13 08:03:18 -08:00
2011-03-31 11:26:23 -03:00
2011-03-23 19:46:59 -07:00
2011-03-23 19:47:03 -07:00
2011-03-31 11:26:23 -03:00
2011-04-28 11:28:21 -07:00
2011-04-29 18:08:37 +02:00