eternaltyro / cryptsetup

Since Google code is shuttering...
http://code.google.com/p/cryptsetup
GNU General Public License v2.0
0 stars 0 forks source link

enhancement: give crypttab option "user" so users can mount preconfigured encrypted devices as fstab has #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to be able to preconfigure encrypted devices in crypttab so users can 
themselves connect them after boot, knowing only the pass phrase for the 
encrypted device, and not elevating any rights. 

I'm thinking like the "user" option is fstab.

I have read these:
https://code.google.com/p/cryptsetup/issues/detail?id=218
https://code.google.com/p/cryptsetup/issues/detail?id=208
http://permalink.gmane.org/gmane.linux.kernel.device-mapper.devel/15649

If I understood them correctly, device-mapper needs some changes for this to be 
possible?

What did you dislike with the http://cryptmount.sourceforge.net/ project?
Kind regards
Jonathan

Original issue reported on code.google.com by jon...@gmail.com on 3 Nov 2014 at 10:23

GoogleCodeExporter commented 9 years ago
The /etc/cryptab and /etc/fstab is outside of cryptsetup package scope.

It is init system responsibility to parse this (e.g. initscripts or systemd).

Yes, device-maper subsystem need internal changes to allow activation of device 
from  non-superuser account.

I cannot do anything here until some patch is added to kernel allowing this.

For the cryptmout:
The problem WAS that they did not use libcryptsetup but simply copied half of 
the libcryptestup source directly. But I see that version 5 uses libcryptsetup, 
that's great news!
So in principle this could work but I would definitely prefer device-mapper in 
kernel allows "private" user-only manageable devices...

Anyway, closing this, the crypttab handling is done elsewhere. (Maybe 
systemd-cryptsetup could add this but I am really not sure if it is good idea 
without direct kernel support.)

Original comment by gmazyl...@gmail.com on 5 Nov 2014 at 8:38