Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 20:41:00 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Demelier David <demelier.david@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: geli_devices entry in rc.conf
Message-ID:  <20100427184059.GA17523@slackbox.erewhon.net>
In-Reply-To: <20100427102615.GA89418@Melon.malikania.fr>
References:  <20100427102615.GA89418@Melon.malikania.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

--+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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100427184059.GA17523>