3 Parses /etc/selinux/semanage.conf
6 Pino Toscano <ptoscano@redhat.com>
9 This file is licenced under the LGPL v2+, like the rest of Augeas.
11 About: Configuration files
12 This lens applies to /etc/selinux/semanage.conf. See <filter>.
15 The <Test_Semanage> file contains various examples and tests.
21 let comment = IniFile.comment "#" "#"
22 let sep = IniFile.sep "=" "="
23 let empty = IniFile.empty
26 let list_keys = "ignoredirs"
28 let fspath = /[^ \t\n;#]+/ (* Rx.fspath without ; or # *)
30 let entry = IniFile.entry_list list_keys sep fspath scl comment
31 | IniFile.entry (IniFile.entry_re - list_keys) sep comment
34 let title = IniFile.title_label "@group" (IniFile.record_re - /^end$/)
35 let record = [ title . entry+ . Util.del_str "[end]" . eol ]
37 let lns = (entry | record)*
39 (* Variable: filter *)
40 let filter = incl "/etc/selinux/semanage.conf"
42 let xfm = transform lns filter