]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
parse.y: extending cgroup names with "default"
authorJan Chaloupka <jchaloup@redhat.com>
Mon, 8 Sep 2014 11:28:18 +0000 (13:28 +0200)
committerJan Safranek <jsafrane@redhat.com>
Mon, 8 Sep 2014 11:44:34 +0000 (13:44 +0200)
commit204bc8c27e50fb7a43d7a9b9ccb3b91a8eda563e
tree439599223cc4d6b6e5b50f64b6422f342062a3f7
parent03c332166df41ceb813dd18a9d109dca7f685c95
parse.y: extending cgroup names with "default"

default is used as a keyword for defining default group permissions. Having "default" as a group name (with double quotes "), parsing is successfull. Howerver, using default without double quotes, parsing fails. This patch modifies parsing rule and lex for default group name without double quotes.

Tested on:

default {
perm {
task {
uid = root;
gid = rgel6610;
fperm = 770;
}
admin {
uid = root;
gid = root;
dperm = 775;
fperm = 744;
}
}
}

group default {
        cpuset {
                cpuset.mems = 0;
                cpuset.cpus = 0;
        }
}

Signed-off-by: Jan Chaloupka <jchaloup@redhat.com>
Acked-by: Jan Safranek <jsafrane@redhat.com>
src/lex.l
src/parse.y