summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/sandbox-rlimit.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2012-09-03 16:51:41 +0000
committerdes <des@FreeBSD.org>2012-09-03 16:51:41 +0000
commit00f3582ac62b9883e85e2cb420c3d9f5d9028188 (patch)
treeeafe8a40bcffb53c6bb88d75ac823cdc99ac92fe /crypto/openssh/sandbox-rlimit.c
parentd00fafff0e6a902c30e2a606c69d740558908f1d (diff)
downloadFreeBSD-src-00f3582ac62b9883e85e2cb420c3d9f5d9028188.zip
FreeBSD-src-00f3582ac62b9883e85e2cb420c3d9f5d9028188.tar.gz
Upgrade OpenSSH to 6.1p1.
Diffstat (limited to 'crypto/openssh/sandbox-rlimit.c')
-rw-r--r--crypto/openssh/sandbox-rlimit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/openssh/sandbox-rlimit.c b/crypto/openssh/sandbox-rlimit.c
index 761e928..a0038633 100644
--- a/crypto/openssh/sandbox-rlimit.c
+++ b/crypto/openssh/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));
OpenPOWER on IntegriCloud