Red Hat Bugzilla – Bug 121204
dm_crypt needs a mount-like interface
Last modified: 2014-03-16 22:44:21 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.6)
Description of problem:
The cryptsetup package should provide a mount-like interface to
dm_crypt. In its current form, cryptsetup requires special code in
projects like pam_mount to handle encrypted filesystems. If there
existed a mount-like interface to dm_crypt, call it mount.crypt, then
dm_crypt volumes could be supported by existing utilities almost for
free. This would also be more similar to existing cryptoloop-based
solutions that generally modify util-linux's mount and losetup commands.
Here is an example of mount.crypt's use:
mount.crypt -o loop /home/user/fs.img /home/user/efs
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Note that the cryptsetup command does not fit in nicely with mount,
Created attachment 99521 [details]
Bash script that implements mount.crypt.
This script could be worked into a finished product or reimplemented in another
language. It is meant to serve as a prototype to illustrate my request.
Handling dm_crypt device removal on unmounting a volume is not yet performed.
Please report this to the upstream cryptsetup maintainer.
Mike, Christophe is already working on this; he plans to integrate
losetup-like functionality directly into cryptsetup so that losetup
doesn't have to be run as a separate step.
I suggest you hop on the dm-crypt mailing list and let him know that
you're really interested in that functionality; it may help him
prioritize the work he has planned for cryptsetup...
See also bug 56698, especially comment 43.