From owner-freebsd-stable@freebsd.org Sun Aug 23 08:02:46 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F7779BF498 for ; Sun, 23 Aug 2015 08:02:46 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DDAE1E6D for ; Sun, 23 Aug 2015 08:02:45 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by iodb91 with SMTP id b91so119741506iod.1 for ; Sun, 23 Aug 2015 01:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=K5euskvkXfPKb/tD8h6vrLPX/S/jTYL0qVL85hsy8oQ=; b=yt8N4iFzWsfBv7w18w/earLrmKVDDs/u07RDVhBM4B4MK7wWp0LilApsw/0SK3v4rn FSLIoISW8TWI4ORNt3FpYpCd6dvHyl0y0w1m2vD0G1Ro7GEvSPNyb/lX3/6zJATfshC6 HLJoYEZ3KoXRsMzDDB51dEZ0qJoH8fdd0PvU7r9fQxbhQ1kiReWu7o8c3KNn6JQzdjHq kjtUSa3L7JJKgwbiRi84eUBS//Wk4W0LJFYAkFOD6lphjMhQ+EswOt20pyRadsRIIb2V Pb/+NYJq3pKf1kj8bNQJP1KoyEvEPZgKGWTABLa694Vy2QnTwsH+5q5p4SUr00fTHd8Y 4nmw== MIME-Version: 1.0 X-Received: by 10.107.136.99 with SMTP id k96mr16768937iod.67.1440316965172; Sun, 23 Aug 2015 01:02:45 -0700 (PDT) Received: by 10.79.107.212 with HTTP; Sun, 23 Aug 2015 01:02:45 -0700 (PDT) In-Reply-To: <55D899C4.30406@codelibre.net> References: <55D879DA.1070407@gmail.com> <55D899C4.30406@codelibre.net> Date: Sun, 23 Aug 2015 10:02:45 +0200 Message-ID: Subject: Re: SSH Chroot FreeBSD 10.1 and 10.2 From: Johan Hendriks To: freebsd-stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2015 08:02:46 -0000 Op zaterdag 22 augustus 2015 heeft Roger Leigh het volgende geschreven: > On 22/08/2015 15:01, Brandon Allbery wrote: > >> On Sat, Aug 22, 2015 at 10:54 AM, Rainer Duffner >> wrote: >> >> I found it=E2=80=99s much easier to have actual chroot=E2=80=99ed ssh us= ers once the users >>> themselves are in an LDAP-directory. >>> Also, for doing anything useful on that shell, it turned out you need a >>> some more devices in /dev than the usual chroot (like a chroot=E2=80=99= ed >>> PHP-FPM, >>> that just needs the dev-set of jail(4)). >>> And a couple of symlinks. >>> >>> >> Yep; chroots are always a pain to deal with. I have seen utilities to >> manage them, but only for Linux. >> > > For your information, I'm in the process of porting my schroot chroot > management tool to FreeBSD. > > https://github.com/codelibre-net/schroot > > This was traditionally a Linux (Debian) chroot tool for building source > packages, but it's worked on Debian GNU/kFreeBSD for a good while so it > already supported nullfs filesystem mounts e.g. of home directories and > devices, and now the work to build it on FreeBSD proper is done--I was > blocked on toolchain/linker bugs for the last 18 months until 10.2 came o= ut > (C++11 nullptr_t was broken) > > The master branch is current development work, and I got it all building > on FreeBSD 10.2-RELEASE just yesterday. It's not yet actually *tested* o= n > FreeBSD other than the unit tests pass. So it might not be > production-ready right now, but it should be fairly soon. Now it's > building, I'll also look at adding some FreeBSD-specific features to it a= s > well, like ZFS snapshots, jail support, etc. > > While the compiled binaries should be fine, there may be residual > Debianisms/GNU libc-isms in the setup scripts. They are likely trivial to > fix though. > > If anyone wants to give it a try and provide some feedback, or if you hav= e > any suggestions or feature requests, please just let me know either by ma= il > or at https://github.com/codelibre-net/schroot/issues > Instructions for building on FreeBSD are in the README > https://github.com/codelibre-net/schroot/blob/master/README.md > > > > Kind regards, > Roger > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" Thank you all for your time and contribution. I will look at the suggestions given here in the coming days. Regards Johan