cgroup: reject cgroup names with '\n'
authorAlban Crequy <alban.crequy@collabora.co.uk>
Mon, 18 Aug 2014 11:20:20 +0000 (12:20 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 18 Aug 2014 14:18:57 +0000 (10:18 -0400)
commit71b1fb5c4473a5b1e601d41b109bdfe001ec82e0
tree6116b623ff191046a53f6a93906f17d7e9d4afec
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
cgroup: reject cgroup names with '\n'

/proc/<pid>/cgroup contains one cgroup path on each line. If cgroup names are
allowed to contain "\n", applications cannot parse /proc/<pid>/cgroup safely.

Signed-off-by: Alban Crequy <alban.crequy@collabora.co.uk>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
kernel/cgroup.c