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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, Apr 27, 2010 at 12:26:16PM +0200, Demelier David wrote:
> Hi freebsd-questions@,
>
> 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 would 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 standpoint.
> And what about the geli_devices in rc.conf the manpage says it attaches at
> the boot process, so if the storage disk is not here will the geli attach 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.
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 that.
Roland
--
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)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
iEYEARECAAYFAkvXL7sACgkQEnfvsMMhpyW6hwCfVrMqiQ3DMCRdAEBWRE2Op3Pz
6UwAn3+fVNp5z/Lw1a2yphgSLQVEWVgH
=bGTU
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100427184059.GA17523>
