From nobody Mon Aug 30 12:06:33 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D3574179BEF7 for ; Mon, 30 Aug 2021 12:07:59 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "weser.webweaving.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GypxC4Lbzz3Mbm for ; Mon, 30 Aug 2021 12:07:59 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from smtpclient.apple (94-210-140-34.cable.dynamic.v4.ziggo.nl [94.210.140.34]) (authenticated bits=0) by weser.webweaving.org (8.16.1/8.16.1) with ESMTPSA id 17UC6aCi005691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Aug 2021 14:06:36 +0200 (CEST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 94-210-140-34.cable.dynamic.v4.ziggo.nl [94.210.140.34] claimed to be smtpclient.apple Content-Type: text/plain; charset=us-ascii List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: autounmountd unload ZFS keys From: Dirk-Willem van Gulik In-Reply-To: <79ba78a2-7125-144a-cff9-41dde28d0599@metricspace.net> Date: Mon, 30 Aug 2021 14:06:33 +0200 Cc: "freebsd-hackers@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <1AA77CFF-015E-446B-9D8F-72EC1292F73F@webweaving.org> References: <79ba78a2-7125-144a-cff9-41dde28d0599@metricspace.net> To: Eric McCorkle X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (weser.webweaving.org [148.251.234.232]); Mon, 30 Aug 2021 14:06:36 +0200 (CEST) X-Rspamd-Queue-Id: 4GypxC4Lbzz3Mbm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 30 Aug 2021, at 14:00, Eric McCorkle wrote: >=20 > Hello all, >=20 > I finally got some free time to hack on FreeBSD again. I have a patch > that will enable autounmountd to unload ZFS encryption keys whenever = it > unmounts a ZFS dataset: >=20 > https://reviews.freebsd.org/D31725 Very useful ! As we're now bending over backwards to accomplish this = with custom hacks. > This is the first of a pair which I'm planning to do, which will = enable > you to have encrypted ZFS home directories managed by autofs, which = will > only have the keys loaded while a given user is logged in. (This is a > common requirement in standards for high-security systems.) The next > one I'm planning to work on is a pam module that will load ZFS keys = upon > a successful login. With kind regards, Dw