Parses /etc/cgrules.conf
Raphael Pinson rap@gmai l.com Ivana Hutarova Varekova hinkvare@redha t.com kova
cgrules | Parses /etc/cgrules.conf |
Licence | This file is licensed under the LGPL v2+, like the rest of Augeas. |
Lens Usage | |
Configuration files | This lens applies to /etc/cgconfig.conf. |
USEFUL PRIMITIVES | |
Separators | |
ws | |
Comments and empty lines | |
eol | |
comment | |
empty | |
Generic primitive definitions | |
name | |
ctrl_key | |
ctrl_value | |
CONTROLLER | |
controller | |
RECORDS | |
user_record | |
group_record | |
LENS & FILTER | |
lns | The main lens, any amount of |
This lens applies to /etc/cgconfig.conf. See filter.
let ws = del /[ \t]+/ " "
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
let name = /[^@%# \t\n][^ \t\n]*/
let ctrl_key = /[^ \t\n\/]+/
let ctrl_value = /[^ \t\n]+/
let controller = ws . [ key ctrl_key . ws . store ctrl_value ]
let user_record = generic_record "user" (store name)
let group_record = generic_record "group" (Util.del_str "@" . store name)
The main lens, any amount of
let lns = ( empty | comment | user_record | group_record )*