]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Some parameters (like devices.allow) shall include a space in their values.
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)
commit22d260d2f3cf11e355bf404769f6d087d9e96acd
tree95e9250e1224aa7bdfae9f4f15af5364e1bec30e
parent807e7828fd7c2bdb619663fcc6f3b11c8e91a0eb
Some parameters (like devices.allow) shall include a space in their values.
This patch adds possibility to specify parameters names in double quotes,
like:
devices {
devices.allow="c 1:3 mr";
}

The double quotes are not mandatory, old  behavior is still there.

As side effect, also parameter names, group names, user names, controller names
etc. can be (optionally) in double quotes and can contain weird characters
- it's a feature, not a bug :). Of course, I could change the grammar to allow
double quotes only in param. values, that shouldn't be a problem.

There is also no advance handling of escape sequences - \", \n, \t does not work
here. That means that parameter values cannot contain newline or double quote
characters - are they required by any controllers?

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
doc/man/cgconfig.conf.5
src/lex.l