OpenDoas icon indicating copy to clipboard operation
OpenDoas copied to clipboard

Setting rlimit

Open Duncaen opened this issue 9 years ago • 0 comments

On linux su doesn't reset any rlimits, sudo sets RLIMIT_NRPOC temporarly.

From sudos source:

/*
 * Unlimit the number of processes since Linux's setuid() will
 * apply resource limits when changing uid and return EAGAIN if
 * nproc would be exceeded by the uid switch.
 */

Duncaen avatar May 08 '16 19:05 Duncaen