From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 18:41:02 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ED82106566B for ; Tue, 27 Apr 2010 18:41:02 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 8ECB48FC42 for ; Tue, 27 Apr 2010 18:41:01 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id o3RIf0OH026424; Tue, 27 Apr 2010 20:41:00 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 1781DBAA1; Tue, 27 Apr 2010 20:41:00 +0200 (CEST) Date: Tue, 27 Apr 2010 20:41:00 +0200 From: Roland Smith To: Demelier David Message-ID: <20100427184059.GA17523@slackbox.erewhon.net> References: <20100427102615.GA89418@Melon.malikania.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20100427102615.GA89418@Melon.malikania.fr> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: geli_devices entry in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 18:41:02 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2010 at 12:26:16PM +0200, Demelier David wrote: > Hi freebsd-questions@, >=20 > I made some encryption on my USB mass storage, so I wanted to know if = we can > geli {attach,detach} as user ? Since we can mount devices as user it w= ould be > great for geli too. It seems that GEOM works by calling ioctl on /dev/geom.ctl. Maybe it it possible to get non-root access by changing the permissions on the /dev/geom.ctl device? But that would possibly enable those users to = carry out all geom actions, which is probably not a good thing from a security standp= oint. =20 > And what about the geli_devices in rc.conf the manpage says it attache= s at > the boot process, so if the storage disk is not here will the geli att= ach if > I plug it after the boot ? No. It just lists and handles the devices available at that time. You might be able to do something with devd? It should be possible to write= a script that is to be called via devd once a disk device is available. That script then should prompt the user (e.g. via xdialog) if a geli-encrypted device is found. I'm not sure how to distinguish geli devices from non-geli devices, though.=20 Additionally, even though the disk system in 8.x doesn't panic anymore when one removes a mounted USB drive, I'm not sure how well geli would handle th= at. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvXL7sACgkQEnfvsMMhpyW6hwCfVrMqiQ3DMCRdAEBWRE2Op3Pz 6UwAn3+fVNp5z/Lw1a2yphgSLQVEWVgH =bGTU -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--