HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/osquery/share/osquery/lenses/devfsrules.aug
module DevfsRules =

  autoload xfm

  let comment  = IniFile.comment IniFile.comment_re "#"

  let eol = Util.eol

  let line_re = /[^][#; \t\n][^#;\n]*[^#; \t\n]/
  let entry = [ seq "entry" . store line_re . (eol | comment) ]

  let title = Util.del_str "["
            . key Rx.word . [ label "id" . Sep.equal . store Rx.integer ]
            . Util.del_str "]" . eol
            . counter "entry"

  let record = IniFile.record title (entry | comment)

  let lns = IniFile.lns record comment

  let filter = incl "/etc/defaults/devfs.rules"
            .  incl "/etc/devfs.rules"

  let xfm = transform lns filter