sandbox: enforce rlimit restrictions before connect

Basic pre-connect sandbox: disable the ability for the xmppipe process
to fork.
pull/1/head
Michael Santos 7 years ago
parent 90c57630b6
commit 6aa2cb528e

@ -21,6 +21,13 @@
int
xmppipe_sandbox_init(xmppipe_state_t *state)
{
struct rlimit rl_zero = {0};
#ifdef RLIMIT_NPROC
if (setrlimit(RLIMIT_NPROC, &rl_zero) < 0)
return -1;
#endif
return 0;
}

Loading…
Cancel
Save