The priv_wrapper library

priv_wrapper is a library to disable resource limits and other privilege dropping.

Clone with git · Report a bug


priv_wrapper allows to disable chroot, prctl, pledge and setrlmit system calls.

Detailed descriptions

priv_wrapper aims to help running processes which are dropping privileges or are restricting resources in test environments. A disabled call always succeeds (i.e. returns 0) and does nothing. The system call pledge exists only on OpenBSD.