cgrules

Parses /etc/cgrules.conf

Author

Raphael Pinson rap.nosp@m.hink@gmai.nosp@m.l.com Ivana Hutarova Varekova vare.nosp@m.kova@redha.nosp@m.t.com

Summary
cgrulesParses /etc/cgrules.conf
LicenceThis file is licensed under the LGPL v2+, like the rest of Augeas.
Lens Usage
Configuration filesThis 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
lnsThe main lens, any amount of

Licence

This file is licensed under the LGPL v2+, like the rest of Augeas.

Lens Usage

Sample usage of this lens in augtool

Configuration files

This lens applies to /etc/cgconfig.conf.  See filter.

USEFUL PRIMITIVES

Separators

ws

let ws = del /[ \t]+/ " "

Comments and empty lines

eol

let eol = Util.eol

comment

let comment = Util.comment

empty

let empty = Util.empty

Generic primitive definitions

name

let name = /[^@%# \t\n][^ \t\n]*/

ctrl_key

let ctrl_key = /[^ \t\n\/]+/

ctrl_value

let ctrl_value = /[^ \t\n]+/

CONTROLLER

controller

let controller = ws . [ key ctrl_key . ws . store ctrl_value ]

RECORDS

user_record

let user_record = generic_record "user" (store name)

group_record

let group_record = generic_record "group" (Util.del_str "@" . store name)

LENS & FILTER

lns

let lns = ( empty | comment | user_record | group_record )*

The main lens, any amount of

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)
let lns = ( empty | comment | user_record | group_record )*
The main lens, any amount of
Close