View | Details | Raw Unified | Return to bug 2140 | Differences between
and this patch

Collapse All | Expand All

(-)sandbox-capsicum.c (-2 / +3 lines)
Lines 75-83 ssh_sandbox_child(struct ssh_sandbox *bo Link Here
75
	if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1)
75
	if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1)
76
		fatal("%s: setrlimit(RLIMIT_FSIZE, { 0, 0 }): %s",
76
		fatal("%s: setrlimit(RLIMIT_FSIZE, { 0, 0 }): %s",
77
			__func__, strerror(errno));
77
			__func__, strerror(errno));
78
	if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1)
78
	/* Opencrypto requires a file descriptor on FreeBSD */
79
	/* if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1)
79
		fatal("%s: setrlimit(RLIMIT_NOFILE, { 0, 0 }): %s",
80
		fatal("%s: setrlimit(RLIMIT_NOFILE, { 0, 0 }): %s",
80
			__func__, strerror(errno));
81
			__func__, strerror(errno)); */
81
	if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1)
82
	if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1)
82
		fatal("%s: setrlimit(RLIMIT_NPROC, { 0, 0 }): %s",
83
		fatal("%s: setrlimit(RLIMIT_NPROC, { 0, 0 }): %s",
83
			__func__, strerror(errno));
84
			__func__, strerror(errno));

Return to bug 2140