table of contents
- unstable 1.0.1-3+b1
PRIV_WRAPPER(1) | PRIV_WRAPPER(1) |
NAME¶
priv_wrapper - A library to disable resource limits and other priviledge dropping.
SYNOPSIS¶
LD_PRELOAD=libpriv_wrapper.so PRIV_WRAPPER=1 [PRIV_WRAPPER_CHROOT_DISABLE=1] [PRIV_WRAPPER_PRCTL_DISABLE=<options>] [PRIV_WRAPPER_SETRLIMIT_DISABLE=<options>]
DESCRIPTION¶
priv_wrapper aims to help running processes which are dropping privileges or are restricting resources in test environments. It can disable chroot, prctl, pledge and setrlmit system calls. A disabled call always succeeds (i.e. returns 0) and does nothing. The system call pledge exists only on OpenBSD.
ENVIRONMENT VARIABLES¶
PRIV_WRAPPER
PRIV_WRAPPER_DISABLE_DEEPBIND
PRIV_WRAPPER_CHROOT_DISABLE
PRIV_WRAPPER_PRCTL_DISABLE
Supported options are:
PR_SET_SECCOMP PR_SET_NO_NEW_PRIVS PR_SET_DUMPABLE
PRIV_WRAPPER_SETRLIMIT_DISABLE
PRIV_WRAPPER_SETRLIMIT_DISABLE=RLIMIT_STACK|RLIMIT_CORE
Supported options are:
RLIMIT_CPU RLIMIT_FSIZE RLIMIT_DATA RLIMIT_STACK RLIMIT_CORE RLIMIT_RSS RLIMIT_NOFILE RLIMIT_AS RLIMIT_NPROC RLIMIT_MEMLOCK RLIMIT_LOCKS RLIMIT_SIGPENDING RLIMIT_MSGQUEUE RLIMIT_NICE RLIMIT_RTPRIO RLIMIT_RTTIME RLIMIT_NLIMITS
PRIV_WRAPPER_PLEDGE_DISABLE
PRIV_WRAPPER_DEBUGLEVEL
EXAMPLE¶
LD_PRELOAD=libpriv_wrapper.so PRIV_WRAPPER=1 PRIV_WRAPPER_PRCTL_DISABLE="PR_SET_SECCOMP|PR_SET_NO_NEW_PRIVS"
LD_PRELOAD=libpriv_wrapper.so PRIV_WRAPPER=1 PRIV_WRAPPER_CHROOT_DISABLE=1 PRIV_WRAPPER_PRCTL_DISABLE=ALL PRIV_WRAPPER_SETRLIMIT_DISABLE="RLIMIT_CPU|RLIMIT_DATA|RLIMIT_NLIMITS"
AUTHOR¶
Samba Team
2024-02-23 |