Bug 121204

Summary: dm_crypt needs a mount-like interface
Product: [Fedora] Fedora Reporter: W. Michael Petullo <redhat>
Component: cryptsetupAssignee: Bill Nottingham <notting>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: ralston, rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-19 04:49:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Bash script that implements mount.crypt. none

Description W. Michael Petullo 2004-04-18 23:14:08 UTC
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:

Comment 1 W. Michael Petullo 2004-04-18 23:18:28 UTC
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.

Comment 2 Bill Nottingham 2004-04-19 04:49:26 UTC
Please report this to the upstream cryptsetup maintainer.

Comment 3 James Ralston 2004-04-20 05:48:31 UTC
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...


Comment 4 W. Michael Petullo 2004-08-11 21:47:21 UTC
See also bug 56698, especially comment 43.