Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.15.195.46
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/augeas/lenses/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/augeas/lenses/dist/automaster.aug
(*
Module: Automaster
  Parses autofs' auto.master files

Author: Dominic Cleal <dcleal@redhat.com>

About: Reference
  See auto.master(5)

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

About: Lens Usage
   To be documented

About: Configuration files
   This lens applies to /etc/auto.master, auto_master and /etc/auto.master.d/*
   files.

About: Examples
   The <Test_Automaster> file contains various examples and tests.
*)

module Automaster =
autoload xfm

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

(* View: eol *)
let eol = Util.eol

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

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

(* View mount *)
let mount = /[^+ \t\n#]+/

(* View: type
   yp, file, dir etc but not ldap *)
let type = Rx.word - /ldap/

(* View: format
   sun, hesoid *)
let format = Rx.word

(* View: name *)
let name = /[^: \t\n]+/

(* View: host *)
let host = /[^:# \n\t]+/

(* View: dn *)
let dn = /[^:# \n\t]+/

(* An option label can't contain comma, comment, equals, or space *)
let optlabel = /[^,#= \n\t]+/
let spec    = /[^,# \n\t][^ \n\t]*/

(* View: optsep *)
let optsep = del /[ \t,]+/ ","

(************************************************************************
 * Group:                 ENTRIES
 *************************************************************************)

(* View: map_format *)
let map_format = [ label "format" . store format ]

(* View: map_type *)
let map_type = [ label "type" . store type ]

(* View: map_name *)
let map_name = [ label "map" . store name ]

(* View: map_generic
   Used for all except LDAP maps which are parsed further *)
let map_generic = ( map_type . ( Sep.comma . map_format )?  . Sep.colon )?
                    . map_name

(* View: map_ldap_name
   Split up host:dc=foo into host/map nodes *)
let map_ldap_name = ( [ label "host" . store host ] . Sep.colon )?
                      . [ label "map" . store dn ]

(* View: map_ldap *)
let map_ldap      = [ label "type" . store "ldap" ]
                      . ( Sep.comma . map_format )? . Sep.colon
                      . map_ldap_name

(* View: comma_spc_sep_list
   Parses options either for filesystems or autofs *)
let comma_spc_sep_list (l:string) =
  let value = [ label "value" . Util.del_str "=" . store Rx.neg1 ] in
    let lns = [ label l . store optlabel . value? ] in
       Build.opt_list lns optsep

(* View: map_mount 
   Mountpoint and whitespace, followed by the map info *)
let map_mount  = [ seq "map" . store mount . Util.del_ws_tab
                   . ( map_generic | map_ldap )
                   . ( Util.del_ws_spc . comma_spc_sep_list "opt" )?
                   . Util.eol ]

(* map_master
   "+" to include more master entries and optional whitespace *)
let map_master = [ seq "map" . store "+" . Util.del_opt_ws ""
                   . ( map_generic | map_ldap )
                   . ( Util.del_ws_spc . comma_spc_sep_list "opt" )?
                   . Util.eol ]

(* View: lns *)
let lns = ( empty | comment | map_mount | map_master ) *

(* Variable: filter *)
let filter = incl "/etc/auto.master"
           . incl "/etc/auto_master"
           . incl "/etc/auto.master.d/*"
           . Util.stdexcl

let xfm = transform lns filter

Anon7 - 2022
AnonSec Team