Colin Cross
bb5b603036
cgroup: Add generic cgroup subsystem permission checks
...
Rather than using explicit euid == 0 checks when trying to move
tasks into a cgroup via CFS, move permission checks into each
specific cgroup subsystem. If a subsystem does not specify a
'allow_attach' handler, then we fall back to doing our checks
the old way.
Use the 'allow_attach' handler for the 'cpu' cgroup to allow
non-root processes to add arbitrary processes to a 'cpu' cgroup
if it has the CAP_SYS_NICE capability set.
This version of the patch adds a 'allow_attach' handler instead
of reusing the 'can_attach' handler. If the 'can_attach' handler
is reused, a new cgroup that implements 'can_attach' but not
the permission checks could end up with no permission checks
at all.
Change-Id: Icfa950aa9321d1ceba362061d32dc7dfa2c64f0c
Original-Author: San Mehat <san@google.com >
Signed-off-by: Colin Cross <ccross@android.com >
2011-07-12 22:58:35 -07:00
..
2011-06-15 20:03:59 -07:00
2011-06-15 21:52:50 -07:00
2011-05-29 01:50:40 -04:00
2010-08-04 15:21:40 +02:00
2011-05-25 21:47:48 +01:00
2010-08-06 12:55:52 -04:00
2011-03-31 11:26:23 -03:00
2011-05-06 08:23:59 -06:00
2010-08-04 15:21:40 +02:00
2011-07-12 22:58:35 -07:00
2011-06-14 09:09:39 -07:00
2011-03-25 14:30:31 -06:00
2011-03-31 11:26:23 -03:00
2011-05-27 22:59:57 +01:00
2011-05-27 20:06:53 -07:00
2011-05-06 18:01:05 -07:00
2011-04-07 11:14:49 -07:00
2011-03-31 11:26:23 -03:00
2011-07-07 13:21:56 -07:00
2010-08-05 13:53:34 -07:00
2011-03-22 11:43:51 +01:00
2011-07-03 13:32:54 +02:00
2011-05-24 20:58:49 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-08-04 15:21:40 +02:00
2011-05-16 22:48:24 -07:00
2011-05-25 16:55:55 -07:00
2011-03-31 11:26:23 -03:00
2011-04-19 16:53:45 -07:00
2011-05-25 16:54:01 -07:00
2010-11-25 14:36:38 +01:00
2010-11-15 23:50:13 +01:00
2011-07-07 10:39:05 -04:00
2011-04-04 17:51:47 -07:00
2010-12-14 22:16:19 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-24 21:01:21 -04:00
2010-08-04 15:21:40 +02:00
2011-05-27 10:25:02 -07:00
2011-01-13 08:03:19 -08:00
2011-03-31 11:26:23 -03:00
2010-09-29 17:20:24 +02:00
2011-07-02 14:27:11 +02:00
2011-03-31 11:26:23 -03:00
2011-01-13 08:03:21 -08:00
2011-05-13 16:31:00 -07:00
2011-05-23 13:01:00 -07:00
2011-03-23 19:46:41 -07:00
2011-05-26 09:42:23 -07:00
2011-04-04 17:51:47 -07:00
2011-06-15 21:52:50 -07:00
2011-05-24 12:36:06 -04:00
2011-05-19 15:59:38 -07:00
2011-03-31 11:26:23 -03:00
2010-11-15 18:25:12 +09:00
2011-05-22 10:01:35 +02:00
2011-03-31 11:26:23 -03:00
2011-05-26 17:12:36 -07:00
2011-03-23 11:36:45 -05:00
2011-03-31 11:26:23 -03:00
2011-01-12 00:08:35 -05:00
2011-05-17 10:52:02 +02:00
2011-04-24 13:18:38 +02:00
2011-06-17 11:28:21 -07:00
2011-05-20 09:30:36 -03:00
2011-05-30 11:14:12 +09:30
2011-06-15 21:52:50 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-10 17:22:06 +02:00
2011-05-06 17:59:20 -07:00
2011-05-20 09:10:04 -07:00
2011-06-14 09:08:41 -07:00
2011-05-26 17:12:34 -07:00
2010-08-04 15:21:40 +02:00
2010-07-20 17:49:30 +00:00
2011-05-25 08:39:21 -07:00
2011-07-11 16:48:38 -07:00
2010-12-03 12:27:01 +01:00
2011-07-06 13:17:51 -07:00
2011-03-31 11:26:23 -03:00
2010-09-09 20:41:25 +02:00
2011-03-31 11:26:23 -03:00
2010-10-28 09:35:11 -07:00
2010-08-14 11:56:46 -07:00
2010-08-11 08:59:21 -07:00
2011-05-25 14:49:20 -07:00
2011-05-23 15:14:11 -07:00
2011-03-27 19:46:59 -07:00
2011-04-07 11:14:49 -07:00
2011-03-31 11:26:23 -03:00
2011-01-13 08:03:15 -08:00
2011-07-11 16:43:27 -07:00
2011-04-28 16:12:47 -04:00
2011-01-13 17:26:46 -08:00
2011-05-23 15:14:11 -07:00
2011-02-17 09:52:03 -08:00
2010-08-04 15:21:40 +02:00
2011-03-23 20:44:18 +01:00
2010-12-14 00:22:00 -05:00
2011-05-25 08:39:45 -07:00
2011-03-31 11:26:23 -03:00
2010-09-11 16:49:21 -07:00
2011-01-06 09:59:38 -08:00
2011-07-08 15:49:20 -07:00
2011-06-15 21:52:50 -07:00
2010-11-01 15:38:34 -04:00
2011-03-07 13:20:05 -08:00
2010-08-04 15:21:40 +02:00
2011-05-28 17:03:29 +02:00
2011-01-12 20:02:48 -05:00
2010-12-29 08:17:12 -02:00
2011-06-09 11:43:04 +10:00
2011-03-31 11:26:23 -03:00
2011-03-04 08:05:49 -08:00
2011-02-03 16:08:57 -08:00
2010-09-03 08:19:51 +02:00
2010-08-11 08:59:18 -07:00
2011-06-15 21:52:50 -07:00
2010-11-11 12:09:59 +01:00
2011-03-09 11:25:10 -08:00
2011-03-31 11:26:23 -03:00
2011-07-11 12:45:04 -07:00
2011-03-30 12:02:05 +02:00
2011-03-31 11:26:23 -03:00
2011-05-23 15:14:11 -07:00
2010-10-26 17:32:41 -07:00
2011-05-23 15:14:11 -07:00
2011-03-31 13:40:42 +02:00
2011-01-13 08:03:24 -08:00