]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Current implementation of cgconfig.conf parser stores parameter values in
authorJan Safranek <jsafrane@redhat.com>
Tue, 10 Aug 2010 09:38:14 +0000 (15:08 +0530)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Tue, 10 Aug 2010 09:38:14 +0000 (15:08 +0530)
commit807e7828fd7c2bdb619663fcc6f3b11c8e91a0eb
treeabf0d9d71c01f7bea09bdf1420fbadfca618c2dc
parentc02e43d9933c63a30f4c9498d103c07de71ad5be
Current implementation of cgconfig.conf parser stores parameter values in
ugly string (name-value pairs separated by ':', name and value themselves
separated by ' '), which does not allow users to have ' ' and ':' in
parameter values. Both are desired for devices.allow and devices.deny.

Let's rewrite the parser to store the parsed name-value pairs in a
dictionary, without any limitation on characters allowed in names and
values.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
src/config.c
src/libcgroup-internal.h
src/parse.y