Add auto-unwrap flag to pam_ecryptfs (or let pam_mount handle the mounts)

Bug #805945 reported by Florian Schmaus
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
eCryptfs
Confirmed
Wishlist
Unassigned

Bug Description

Change line 152 of pam_encryptfs.c to "if (!file_exists_dotecryptfs(homedir, "auto-mount") && !file_exists_dotecryptfs(homedir, "auto-unwrap"))", to add an extra option that tells pam_ecryptfs to only unwrap the passphrase without mounting.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Florian,

Thanks for this suggestion!

Can you give a bit more information? What's the use case? I presume you're wanting pam_ecryptfs to load keys into your keyring automatically on login, but not necessarily mount anything automatically?

Changed in ecryptfs:
importance: Undecided → Wishlist
status: New → In Progress
status: In Progress → Incomplete
Revision history for this message
Florian Schmaus (flowdalic) wrote :

Hi Dustin

I made these two bug reports - 805943 is the other one - when I configured an encrypted home with pam_mount. In this case pam_ecryptfs should only add the key to the keyring, as you already figured out. I have documented everything here: http://en.gentoo-wiki.com/wiki/Encrypt_home_directory_with_ecryptfs

Revision history for this message
Tyler Hicks (tyhicks) wrote :

I think the more appealing task that may come from this bug report is the opportunity to remove the mount functionality from pam_ecryptfs and let pam_mount handle that.

Changed in ecryptfs:
status: Incomplete → Confirmed
summary: - Add auto-unwrap flag to pam_ecryptfs
+ Add auto-unwrap flag to pam_ecryptfs (or let pam_mount handle the
+ mounts)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Agreed, Tyler.

Thanks for that link, Florian. This is pretty interesting. I'll have a look at it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.