PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: _bwrap Size: 6.18 KB
/usr/share/zsh/site-functions/_bwrap

#compdef bwrap

_bwrap_args_after_perms=(
    # Please sort alphabetically (in LC_ALL=C order) by option name
    '--bind-data[Copy from FD to file which is bind-mounted on DEST]: :_guard "[0-9]#" "file descriptor to read content":destination:_files'
    '--dir[Create dir at DEST]:directory to create:_files -/'
    '--file[Copy from FD to destination DEST]: :_guard "[0-9]#" "file descriptor to read content from":destination:_files'
    '--ro-bind-data[Copy from FD to file which is readonly bind-mounted on DEST]: :_guard "[0-9]#" "file descriptor to read content from":destination:_files'
    '--tmpfs[Mount new tmpfs on DEST]:mount point for tmpfs:_files -/'
)

_bwrap_args=(
    '*::arguments:_normal'
    $_bwrap_args_after_perms

    # Please sort alphabetically (in LC_ALL=C order) by option name
    '--add-seccomp-fd[Load and use seccomp rules from FD]: :_guard "[0-9]#" "file descriptor to read seccomp rules from"'
    '--args[Parse NUL-separated args from FD]: :_guard "[0-9]#" "file descriptor with NUL-separated arguments"'
    '--as-pid-1[Do not install a reaper process with PID=1]'
    '--bind-try[Equal to --bind but ignores non-existent SRC]:source:_files:destination:_files'
    '--bind[Bind mount the host path SRC on DEST]:source:_files:destination:_files'
    '--block-fd[Block on FD until some data to read is available]: :_guard "[0-9]#" "file descriptor to block on"'
    '--cap-add[Add cap CAP when running as privileged user]:capability to add:->caps'
    '--cap-drop[Drop cap CAP when running as privileged user]:capability to add:->caps'
    '--chdir[Change directory to DIR]:working directory for sandbox: _files -/'
    '--chmod[Set permissions]: :_guard "[0-7]#" "permissions in octal":path to set permissions:_files'
    '--clearenv[Unset all environment variables]'
    '--dev-bind-try[Equal to --dev-bind but ignores non-existent SRC]:source:_files:destination:_files'
    '--dev-bind[Bind mount the host path SRC on DEST, allowing device access]:source:_files:destination:_files'
    '--dev[Mount new dev on DEST]:mount point for /dev:_files -/'
    "--die-with-parent[Kills with SIGKILL child process (COMMAND) when bwrap or bwrap's parent dies.]"
    '--exec-label[Exec label for the sandbox]:SELinux label:_selinux_contexts'
    '--file-label[File label for temporary sandbox content]:SELinux label:_selinux_contexts'
    '--gid[Custom gid in the sandbox (requires --unshare-user or --userns)]: :_guard "[0-9]#" "numeric group ID"'
    '--help[Print help and exit]'
    '--hostname[Custom hostname in the sandbox (requires --unshare-uts)]:hostname:'
    '--info-fd[Write information about the running container to FD]: :_guard "[0-9]#" "file descriptor to write to"'
    '--json-status-fd[Write container status to FD as multiple JSON documents]: :_guard "[0-9]#" "file descriptor to write to"'
    '--lock-file[Take a lock on DEST while sandbox is running]:lock file:_files'
    '--mqueue[Mount new mqueue on DEST]:mount point for mqueue:_files -/'
    '--new-session[Create a new terminal session]'
    '--perms[Set permissions for next action argument]: :_guard "[0-7]#" "permissions in octal": :->after_perms'
    '--pidns[Use this user namespace (as parent namespace if using --unshare-pid)]: :'
    '--proc[Mount new procfs on DEST]:mount point for procfs:_files -/'
    '--remount-ro[Remount DEST as readonly; does not recursively remount]:mount point to remount read-only:_files'
    '--ro-bind-try[Equal to --ro-bind but ignores non-existent SRC]:source:_files:destination:_files'
    '--ro-bind[Bind mount the host path SRC readonly on DEST]:source:_files:destination:_files'
    '--seccomp[Load and use seccomp rules from FD]: :_guard "[0-9]#" "file descriptor to read seccomp rules from"'
    '--setenv[Set an environment variable]:variable to set:_parameters -g "*export*":value of variable: :'
    '--symlink[Create symlink at DEST with target SRC]:symlink target:_files:symlink to create:_files:'
    '--sync-fd[Keep this fd open while sandbox is running]: :_guard "[0-9]#" "file descriptor to keep open"'
    '--uid[Custom uid in the sandbox (requires --unshare-user or --userns)]: :_guard "[0-9]#" "numeric group ID"'
    '(--clearenv)--unsetenv[Unset an environment variable]:variable to unset:_parameters -g "*export*"'
    '--unshare-all[Unshare every namespace we support by default]'
    '--unshare-cgroup-try[Create new cgroup namespace if possible else continue by skipping it]'
    '--unshare-cgroup[Create new cgroup namespace]'
    '--unshare-ipc[Create new ipc namespace]'
    '--unshare-net[Create new network namespace]'
    '--unshare-pid[Create new pid namespace]'
    '(--userns --userns2)--unshare-user[Create new user namespace (may be automatically implied if not setuid)]'
    '--unshare-user-try[Create new user namespace if possible else continue by skipping it]'
    '--unshare-uts[Create new uts namespace]'
    '(--unshare-user)--userns[Use this user namespace (cannot combine with --unshare-user)]: :'
    '--userns-block-fd[Block on FD until the user namespace is ready]: :_guard "[0-9]#" "file descriptor to block on"'
    '(--unshare-user)--userns2[After setup switch to this user namespace, only useful with --userns]: :'
    '--version[Print version]'
)

_bwrap() {
    _arguments -S $_bwrap_args
    case "$state" in
        after_perms)
            _values -S ' ' 'option' $_bwrap_args_after_perms
            ;;

        caps)
            # $ grep -E '#define\sCAP_\w+\s+[0-9]+' /usr/include/linux/capability.h | awk '{print $2}' | xargs echo
            local all_caps=(
                CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_FSETID \
                CAP_KILL CAP_SETGID CAP_SETUID CAP_SETPCAP CAP_LINUX_IMMUTABLE \
                CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_ADMIN CAP_NET_RAW \
                CAP_IPC_LOCK CAP_IPC_OWNER CAP_SYS_MODULE CAP_SYS_RAWIO CAP_SYS_CHROOT \
                CAP_SYS_PTRACE CAP_SYS_PACCT CAP_SYS_ADMIN CAP_SYS_BOOT CAP_SYS_NICE \
                CAP_SYS_RESOURCE CAP_SYS_TIME CAP_SYS_TTY_CONFIG CAP_MKNOD CAP_LEASE \
                CAP_AUDIT_WRITE CAP_AUDIT_CONTROL CAP_SETFCAP CAP_MAC_OVERRIDE \
                CAP_MAC_ADMIN CAP_SYSLOG CAP_WAKE_ALARM CAP_BLOCK_SUSPEND CAP_AUDIT_READ
            )
            _values 'caps' $all_caps
            ;;
    esac
}

Directory Contents

Dirs: 0 × Files: 28

Name Size Perms Modified Actions
2.84 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
9.36 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
6.18 KB lrw-r--r-- 2024-08-12 18:00:48
Edit Download
1.89 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
14.58 KB lrw-r--r-- 2026-01-28 08:27:23
Edit Download
20.25 KB lrw-r--r-- 2026-03-10 23:36:54
Edit Download
643 B lrw-r--r-- 2024-04-17 17:19:24
Edit Download
2.73 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
7.03 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
779 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
8.18 KB lrw-r--r-- 2021-12-13 03:43:13
Edit Download
3.68 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
6.25 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
120 B lrw-r--r-- 2026-05-05 09:12:24
Edit Download
128 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
505 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
318 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
263 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
19.50 KB lrw-r--r-- 2026-05-05 15:47:58
Edit Download
3.76 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
5.50 KB lrw-r--r-- 2026-05-05 15:44:27
Edit Download
633 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
1.15 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
330 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
4.25 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
744 B lrw-r--r-- 2022-10-31 18:59:18
Edit Download
2.00 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download
8.06 KB lrw-r--r-- 2022-10-31 18:59:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
 !"#$%&'(()*+,-./00123456789 t\ wIDATx ]ys  47Y ƒ -  "  Rv  < f{Ɛ $k l L > L  ~h^ 1  [  r G t& h  l F z3O Y ! p A(_g̷ E8 )S 8 c  Kb"z ~ 5 J xAL WU <  *  5 m;W a pB h ~P J 2 3 6 ҙ .Ƹ P i  4g F R L P ΪK/D  M v (a3 k J Œ4N5* SH ` SdJ z  O J Xՠ V>u ߱ BE&L b2 ?2` tX+  c CB A$ i b C ĀMB E : /  # Dx &l =q Ty  0 \p I ( L Ǎ { e 4k ;`u^ヲ eP!( d {  )T A 8 O;Ě n >;s6 !  :Nx `[S D HU ~ q›J F} a g*D 49 / pn k h (t 8NxƐF _!r չ7 ZR R׷ q/5") Ӎ NY 0 x sZ!   o  fu  ,  K"$ ? pg  㕣=  1» {h " fh7    y  } € +7  $ y " X —ą - G P u 4 m >J 5 L =V ' ^@I p ?MS xЌ XV P ! h "C NS9B8̢ ]!K  e   zA , ӏkbY  !< XQ ٿyS| *" f { w  4@[S <  # 0 ! js [m  =,~ o "ݎ DHf Wo $ g ! Vԅ t mB /y Wf V4񺍸 c+@x?  B ~u " xUN e 0 BĂ) ~J pz! 7y6]l Ԥ@ P a< O /DHC `≻  N m"$  0ObB }{ x AO FCG D R ^ "B  { WDH  UR l@ T #  +"d T ; 0 i  D}. 7 ` ' ] w rE &S i ƕiTD EL P _ u h $ Ա FG wVD G L R Zf ' .!] J /ZR oGЍs Mr Ĥ ʬ 3 Q [3 cL ` ^ p + ( F;# B 5 '  2Y f [  ϶R0e }  E 7 6M aۮ H <& n % L] E}Up x紉, Uw' Q  Ǯշo k ވۙ 0N94 VX5 xEDE l D #֤ } C o )W :  ^ s 9  bRf iX5u ཱི 4 :[  T 1. | [E 2ؽ Iy\ : o x K G 5 ylP ' uK E ftb/i[3 .g _  [3M n G, #NwQ5~  ؚ) | n =Ц"x qg gB ` 듘 ~ x w ? ? R~  _ u. &VQ K˻   H C ( TN˄+ `C dA nB׭ D 3"Z G ê ^k H_ /- ~ " R_  .8 Z_ 6@ o  xg  uP ? 3լ @7AM!  E7^ - =V L  x  g-D0  CtmW 7  O  G _ WD0 g C  w1 r d w : a | \  *" f nֳ ^ H# f L ` Z ۽hV  }S F r0Ù Bć5r] @! NL iQ]{s^=4 d  WD  "  "   M; t" 8 5 e dL| "-*st" ) SWD ?R[S e ooF  20.D ? bo =) A i o d ģ ZҰaO @E =) i D a &ܟa CϞ y6 ,<%{^x%{f8? `iw^ ?/ M * IEND B`