From owner-svn-src-all@freebsd.org Wed Jul 22 09:04:57 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8F22937715B for ; Wed, 22 Jul 2020 09:04:57 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBV0T32mbz3dqZ; Wed, 22 Jul 2020 09:04:57 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from localhost (p4fd3ae86.dip0.t-ipconnect.de [79.211.174.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gbe) by smtp.freebsd.org (Postfix) with ESMTPSA id E54A72DC39; Wed, 22 Jul 2020 09:04:56 +0000 (UTC) (envelope-from gbe@freebsd.org) Date: Wed, 22 Jul 2020 11:04:54 +0200 From: Gordon Bergling To: Fabian Keil Cc: svn-src-all@freebsd.org Subject: Re: svn commit: r363363 - head/lib/geom/eli Message-ID: <20200722090454.GA82481@lion.0xfce3.net> References: <202007201324.06KDOoti077929@repo.freebsd.org> <20200721155419.4b127dac@fabiankeil.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20200721155419.4b127dac@fabiankeil.de> X-Url: X-Operating-System: FreeBSD 12.1-STABLE amd64 X-Host-Uptime: 10:58AM up 6 days, 15:08, 6 users, load averages: 0.21, 0.37, 0.35 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 09:04:57 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 21, 2020 at 03:54:19PM +0200, Fabian Keil wrote: > Gordon Bergling wrote: >=20 > > Author: gbe (doc committer) > > Date: Mon Jul 20 13:24:50 2020 > > New Revision: 363363 > > URL: https://svnweb.freebsd.org/changeset/base/363363 > >=20 > > Log: > > geli(8): Add an example on how to use geli(8) with a file as encrypte= d storage > > =20 > > Reviewed by: bcr (mentor) > > Approved by: bcr (mentor) > > MFC after: 1 week > > Differential Revision: https://reviews.freebsd.org/D25741 > >=20 > > Modified: > > head/lib/geom/eli/geli.8 > >=20 > > Modified: head/lib/geom/eli/geli.8 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- head/lib/geom/eli/geli.8 Mon Jul 20 13:01:19 2020 (r363362) > > +++ head/lib/geom/eli/geli.8 Mon Jul 20 13:24:50 2020 (r363363) > [...] > > +This key should be protected by a passphrase, which > > +is requested when geli init is called. > > +.Bd -literal -offset indent > > +# dd if=3D/dev/random of=3D/root/private0.key bs=3D64 count=3D1 > > +# geli init -K /root/private0.key -s 4096 /dev/md0 > > +Enter new passphrase: > > +Reenter new passphrase: > > +# dd if=3D/dev/random of=3D/dev/md0.eli bs=3D1m >=20 > There seems to be a "geli attach ..." missing after > the "geli init ...". >=20 > > +The call of geli attach will ask for the passphrase. > > +It is recommended to do this procedure after the boot, because otherwi= se > > +the boot process would be waiting for the passphrase input. > > +.Bd -literal -offset indent > > +# geli attach -k /root/private0.key /dev/md0 > > +Enter new passphrase: >=20 > The expected prompt is just "Enter passphrase:". >=20 > Fabian Hi Fabian, your right. I created a differential with the fixes for the example and com= mit your corrections once the differential is approved. --Gordon --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEYbWI0KY5X7yH/Fy4OQX2V8rP09wFAl8YATVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYx QjU4OEQwQTYzOTVGQkM4N0ZDNUNCODM5MDVGNjU3Q0FDRkQzREMACgkQOQX2V8rP 09yINAf6AxvuA+nGHaYj38AqSzTUTHsaiBMDRF18gUngKEOboB2dzRH9qXN4pSYE y9vRnAXHKxkrmVJdrJkav1PFWpoQAiZTS/IiRRW2+YVxbnsnsnfWK2IXqOxLmZ47 2T1s37ZkQkJpJcINh9Crxz7LBxIhkLthTPvHNIkGVpZOxUy3CfuMA1tQhPmhdj0l f/Uod0oAbPckQ0SqsDuqKp7HmhCdmbIjGWMytXbim7k7KY2apNZKowGULwhCEmDM j5AHD9MGYRX/N85QAVV698TFhWVVrlPaRkqfaCPoYCDYC+IK3J31qe8CVsSpwOeu wVZ272TRImkaa+hOYF/sg2bXGDaddA== =VzkM -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--