From: Damien Miller Date: Tue, 23 Feb 2016 01:56:59 +0000 (+1100) Subject: fix sandbox on OSX Lion X-Git-Tag: V_7_2_P1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f303b1f36d934d8410b05625f25c7bcb75db4d;p=thirdparty%2Fopenssh-portable.git fix sandbox on OSX Lion sshd was failing with: ssh_sandbox_child: sandbox_init: dlopen(/usr/lib/libsandbox.1.dylib, 261):cw image not found [preauth] caused by chroot before sandboxing. Avoid by explicitly linking libsandbox to sshd. Spotted by Darren. --- diff --git a/configure.ac b/configure.ac index e36b04942..7258cc0e5 100644 --- a/configure.ac +++ b/configure.ac @@ -644,6 +644,9 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) supported by bsd-setproctitle.c]) AC_CHECK_FUNCS([sandbox_init]) AC_CHECK_HEADERS([sandbox.h]) + AC_CHECK_LIB([sandbox], [sandbox_apply], [ + SSHDLIBS="$SSHDLIBS -lsandbox" + ]) ;; *-*-dragonfly*) SSHDLIBS="$SSHDLIBS -lcrypt"