]> git.baikalelectronics.ru Git - kernel.git/commit
cgroups: introduce cft->read_seq()
authorSerge E. Hallyn <serue@us.ibm.com>
Tue, 29 Apr 2008 08:00:14 +0000 (01:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:10 +0000 (08:06 -0700)
commitfba76d6bc3a989144f3be0dab67f3048bda023d7
treed69a96bb829940f3ae5171fde481edb20a9e468a
parent88434731461dbe46bb1c5a4670291904fc303618
cgroups: introduce cft->read_seq()

Introduce a read_seq() helper in cftype, which uses seq_file to print out
lists.  Use it in the devices cgroup.  Also split devices.allow into two
files, so now devices.deny and devices.allow are the ones to use to manipulate
the whitelist, while devices.list outputs the cgroup's current whitelist.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: Paul Menage <menage@google.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/cgroup.h
kernel/cgroup.c
security/device_cgroup.c