Tejun Heo
7dbdb199d3
cgroup: replace cftype->mode with CFTYPE_WORLD_WRITABLE
...
cftype->mode allows controllers to give arbitrary permissions to
interface knobs. Except for "cgroup.event_control", the existing uses
are spurious.
* Some explicitly specify S_IRUGO | S_IWUSR even though that's the
default.
* "cpuset.memory_pressure" specifies S_IRUGO while also setting a
write callback which returns -EACCES. All it needs to do is simply
not setting a write callback.
"cgroup.event_control" uses cftype->mode to make the file
world-writable. It's a misdesigned interface and we don't want
controllers to be tweaking interface file permissions in general.
This patch removes cftype->mode and all its spurious uses and
implements CFTYPE_WORLD_WRITABLE for "cgroup.event_control" which is
marked as compatibility-only.
Signed-off-by: Tejun Heo <tj@kernel.org >
Cc: Li Zefan <lizefan@huawei.com >
Cc: Johannes Weiner <hannes@cmpxchg.org >
2015-09-18 17:54:23 -04:00
..
2015-09-09 14:11:55 -07:00
2015-06-16 11:04:29 +01:00
2015-02-19 12:39:03 -06:00
2015-09-10 13:29:01 -07:00
2015-06-30 19:44:57 -07:00
2015-09-01 14:33:35 -07:00
2015-07-14 22:48:06 +02:00
2015-09-05 20:34:28 -07:00
2015-09-02 13:10:25 -07:00
2015-09-10 13:29:01 -07:00
2015-08-04 08:49:21 -07:00
2015-09-04 16:54:41 -07:00
2015-09-01 14:04:50 -07:00
2015-09-08 14:04:14 -07:00
2015-04-11 22:27:55 -04:00
2014-10-09 22:26:04 -04:00
2015-08-06 16:14:53 -04:00
2015-09-08 13:34:59 -07:00
2015-09-08 13:34:59 -07:00
2015-09-08 13:34:59 -07:00
2015-09-08 13:34:59 -07:00
2015-08-06 16:17:25 -04:00
2015-09-08 13:34:59 -07:00
2014-08-08 15:57:18 -07:00
2015-04-15 16:35:22 -07:00
2015-07-14 17:29:23 -04:00
2015-08-25 14:19:25 -04:00
2015-09-18 17:54:23 -04:00
2015-06-04 23:57:18 +02:00
2015-05-07 12:02:51 +02:00
2015-09-03 02:42:20 +02:00
2015-08-31 20:26:22 -07:00
2015-09-18 17:54:23 -04:00
2014-08-25 15:42:19 -07:00
2015-09-10 13:29:01 -07:00
2014-07-23 10:18:06 -07:00
2015-04-12 21:03:31 +02:00
2015-08-07 13:59:49 +02:00
2015-09-10 13:29:01 -07:00
2015-09-16 12:53:17 -04:00
2014-10-21 23:44:20 +02:00
2015-07-20 21:43:54 +02:00
2015-04-15 16:35:22 -07:00
2015-04-15 16:35:22 -07:00
2014-10-29 11:18:18 -04:00
2015-08-03 11:34:16 +02:00
2014-10-14 02:18:16 +02:00
2014-09-10 15:42:12 -07:00
2015-05-12 09:46:00 +02:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-08-04 10:16:54 +02:00
2015-09-10 13:29:01 -07:00
2015-09-04 16:54:41 -07:00
2015-09-11 15:21:34 -07:00
2015-09-11 15:21:34 -07:00
2015-08-27 19:40:58 -04:00
2015-08-12 17:01:01 +01:00
2015-07-29 06:13:22 +09:30
2015-09-01 08:40:25 -07:00
2014-12-04 14:34:54 -05:00
2015-02-13 21:21:38 -08:00
2015-06-30 19:44:57 -07:00
2015-07-01 10:49:25 -07:00
2014-12-16 15:53:03 -08:00
2015-07-22 15:27:32 -07:00
2015-09-08 15:35:28 -07:00
2015-07-15 11:52:52 -07:00
2015-01-17 10:02:23 +13:00
2015-09-10 13:29:01 -07:00
2015-06-30 19:44:59 -07:00
2015-08-10 23:07:05 -04:00
2015-07-20 17:19:19 +10:00
2015-08-07 04:39:40 +03:00
2015-04-19 13:19:23 -07:00
2015-09-04 16:54:41 -07:00
2015-02-09 15:24:03 -08:00
2014-12-13 12:42:48 -08:00
2015-08-03 12:21:28 +02:00
2015-09-11 15:21:34 -07:00
2015-07-10 10:39:25 -05:00
2014-12-10 17:41:10 -08:00
2015-09-10 13:29:01 -07:00
2015-09-05 13:46:58 -07:00
2015-01-18 01:03:45 -05:00
2014-08-08 15:57:18 -07:00
2015-05-27 12:56:15 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2014-12-05 17:19:27 -06:00
2015-09-04 16:54:41 -07:00
2014-08-26 13:45:45 -04:00
2014-12-17 12:31:40 -08:00
2014-06-06 16:08:16 -07:00
2014-12-04 14:34:47 -05:00
2015-09-04 16:54:41 -07:00
2015-09-02 08:02:20 -07:00