From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.6) Gecko/20040312 Epiphany/1.1.12 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): cryptsetup-0.1-0.1 How reproducible: Always Steps to Reproduce: Note that the cryptsetup command does not fit in nicely with mount, mount.cifs, etc. Additional info:
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.