summaryrefslogtreecommitdiff
path: root/sandbox-rlimit.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2012-08-29 15:55:54 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2012-08-29 15:55:54 +0000
commit925f1fb7e466dbf645650dc4ea9d2a34e728ef9c (patch)
tree0fb8acbff73fddb3a95e864c5ddd6370367153a9 /sandbox-rlimit.c
parent2e97a36905ba9936cb9972e37c5e56deb288e442 (diff)
Diffstat (limited to 'sandbox-rlimit.c')
-rw-r--r--sandbox-rlimit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sandbox-rlimit.c b/sandbox-rlimit.c
index 761e9284f8385..a00386337cfdd 100644
--- a/sandbox-rlimit.c
+++ b/sandbox-rlimit.c
@@ -64,9 +64,11 @@ ssh_sandbox_child(struct ssh_sandbox *box)
rl_zero.rlim_cur = rl_zero.rlim_max = 0;
+#ifndef SANDBOX_SKIP_RLIMIT_FSIZE
if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1)
fatal("%s: setrlimit(RLIMIT_FSIZE, { 0, 0 }): %s",
__func__, strerror(errno));
+#endif
if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1)
fatal("%s: setrlimit(RLIMIT_NOFILE, { 0, 0 }): %s",
__func__, strerror(errno));