Serge E. Hallyn
b0e77598f8
userns: user namespaces: convert several capable() calls
...
CAP_IPC_OWNER and CAP_IPC_LOCK can be checked against current_user_ns(),
because the resource comes from current's own ipc namespace.
setuid/setgid are to uids in own namespace, so again checks can be against
current_user_ns().
Changelog:
Jan 11: Use task_ns_capable() in place of sched_capable().
Jan 11: Use nsown_capable() as suggested by Bastian Blank.
Jan 11: Clarify (hopefully) some logic in futex and sched.c
Feb 15: use ns_capable for ipc, not nsown_capable
Feb 23: let copy_ipcs handle setting ipc_ns->user_ns
Feb 23: pass ns down rather than taking it from current
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Daniel Lezcano <daniel.lezcano@free.fr>
Acked-by: David Howells <dhowells@redhat.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-23 19:47:08 -07:00
..
2010-12-22 18:57:02 +01:00
2011-03-20 18:14:55 -07:00
2011-03-17 15:52:30 +01:00
2011-03-20 18:14:55 -07:00
2011-03-15 18:53:35 -07:00
2011-03-18 10:38:34 -07:00
2010-08-09 16:48:42 -04:00
2010-07-14 11:29:46 +02:00
2010-10-30 02:18:32 -04:00
2011-03-14 09:15:23 -04:00
2011-03-03 10:55:40 -08:00
2010-10-30 01:42:19 -04:00
2011-03-03 10:55:40 -08:00
2010-10-30 08:45:43 -04:00
2011-03-23 19:46:28 -07:00
2011-03-23 19:47:06 -07:00
2010-10-27 18:03:08 -07:00
2011-03-22 17:43:58 -07:00
2011-02-02 15:28:19 +01:00
2010-10-15 15:53:27 +02:00
2011-03-22 17:44:11 -07:00
2011-03-23 19:46:35 -07:00
2011-03-23 19:47:02 -07:00
2010-08-09 20:45:05 -07:00
2011-01-11 11:02:13 -08:00
2011-03-23 19:46:58 -07:00
2010-12-24 15:02:40 +01:00
2011-03-23 19:47:08 -07:00
2011-03-23 19:47:08 -07:00
2011-03-23 19:47:08 -07:00
2011-03-15 18:53:35 -07:00
2010-08-17 09:11:52 +02:00
2010-12-16 11:36:43 +01:00
2010-12-18 15:54:48 +01:00
2010-10-29 12:56:13 -04:00
2011-03-22 17:44:12 -07:00
2010-11-01 15:38:34 -04:00
2010-10-01 10:50:58 -07:00
2010-08-17 18:07:43 -07:00
2011-01-07 17:02:58 -08:00
2010-05-21 09:37:31 -07:00
2011-03-22 17:44:01 -07:00
2011-01-13 08:03:16 -08:00
2010-11-10 10:23:58 +01:00
2011-01-20 13:32:33 +01:00
2011-01-13 08:03:08 -08:00
2011-03-22 17:44:12 -07:00
2010-11-26 15:05:34 +01:00
2010-10-27 18:03:09 -07:00
2011-03-23 19:47:08 -07:00
2010-08-04 15:23:14 -07:00
2011-03-22 17:44:11 -07:00
2011-01-24 14:32:51 +10:30
2011-03-16 14:04:14 +01:00
2011-03-23 19:46:58 -07:00
2011-03-17 13:08:28 -03:00
2011-03-15 00:43:18 +01:00
2011-02-02 15:28:19 +01:00
2011-02-21 12:53:09 -08:00
2011-03-22 17:44:13 -07:00
2010-10-15 15:53:27 +02:00
2011-03-23 19:47:05 -07:00
2010-11-12 07:55:31 -08: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
2010-11-05 08:21:34 -07: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-02-23 11:34:03 +01:00
2011-02-23 11:33:59 +01:00
2010-11-23 10:29:08 +01:00
2010-07-17 12:06:22 +02:00
2010-07-17 12:06:22 +02:00
2011-02-03 14:20:33 +01:00
2011-03-04 11:14:31 +01:00
2010-11-18 13:27:46 +01:00
2011-01-26 12:33:22 +01:00
2011-03-04 11:12:26 +01:00
2010-10-24 13:29:01 +02:00
2011-01-26 12:33:22 +01:00
2011-03-23 19:47:08 -07:00
2011-03-23 19:47:04 -07:00
2011-03-22 17:44:11 -07:00
2011-03-22 17:44:01 -07: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-01-13 08:03:19 -08:00
2010-10-14 08:55:27 +02: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
2010-10-27 18:03:17 -07:00
2011-03-23 19:47:08 -07:00
2011-01-13 08:03:18 -08:00
2011-03-23 19:46:59 -07:00
2011-03-23 19:47:03 -07:00
2010-10-26 17:32:41 -07:00
2011-03-22 17:44:12 -07:00
2010-06-29 10:07:14 +02:00
2011-03-22 17:44:01 -07:00