Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.135.247.237
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/root/proc/self/root/proc/2/cwd/usr/share/augeas/lenses/dist/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/root/proc/self/root/proc/2/cwd/usr/share/augeas/lenses/dist/tests/test_devfsrules.aug
module Test_DevfsRules =

  let manpage_example = "[localrules=10]
add path 'da*s*' mode 0660 group usb
"

  test DevfsRules.lns get manpage_example =
  { "localrules" { "id" = "10" }
      { "1" = "add path 'da*s*' mode 0660 group usb" } }


  let example = "[devfsrules_jail_unhide_usb_printer_and_scanner=30]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path 'ulpt*' mode 0660 group printscan unhide 
add path 'unlpt*' mode 0660 group printscan unhide
add path 'ugen2.8' mode 0660 group printscan unhide  # Scanner (ugen2.8 is a symlink to usb/2.8.0)
add path usb unhide
add path usbctl unhide
add path 'usb/2.8.0' mode 0660 group printscan unhide

[devfsrules_jail_unhide_usb_scanner_only=30]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path 'ugen2.8' mode 0660 group scan unhide  # Scanner
add path usb unhide
add path usbctl unhide
add path 'usb/2.8.0' mode 0660 group scan unhide
"

  test DevfsRules.lns get example =
    { "devfsrules_jail_unhide_usb_printer_and_scanner" { "id" = "30" }
      { "1" = "add include $devfsrules_hide_all" }
      { "2" = "add include $devfsrules_unhide_basic" }
      { "3" = "add include $devfsrules_unhide_login" }
      { "4" = "add path 'ulpt*' mode 0660 group printscan unhide" }
      { "5" = "add path 'unlpt*' mode 0660 group printscan unhide" }
      { "6" = "add path 'ugen2.8' mode 0660 group printscan unhide"
        { "#comment" = "Scanner (ugen2.8 is a symlink to usb/2.8.0)" }
      }
      { "7" = "add path usb unhide" }
      { "8" = "add path usbctl unhide" }
      { "9" = "add path 'usb/2.8.0' mode 0660 group printscan unhide" }
      {  }
    }
    { "devfsrules_jail_unhide_usb_scanner_only" { "id" = "30" }
      { "1" = "add include $devfsrules_hide_all" }
      { "2" = "add include $devfsrules_unhide_basic" }
      { "3" = "add include $devfsrules_unhide_login" }
      { "4" = "add path 'ugen2.8' mode 0660 group scan unhide"
        { "#comment" = "Scanner" }
      }
      { "5" = "add path usb unhide" }
      { "6" = "add path usbctl unhide" }
      { "7" = "add path 'usb/2.8.0' mode 0660 group scan unhide" }
    }


Anon7 - 2022
AnonSec Team