All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Verify LUKS password
Date: Tue, 29 Nov 2011 18:31:24 +0100	[thread overview]
Message-ID: <20111129173124.GA20264@tansi.org> (raw)
In-Reply-To: <CAPTy4spxBbjED5UjS0A653zbuhVsJHx5b_69P9G=7Eb8FWqGHg@mail.gmail.com>

I am not clear on what you want to do: Use the LUKS passphrase
also for the Gnome screen-locker? If so, set one of the keyslots
to the passphrase of the screen-locker.

If you actually want to remove the LUKS mapping (i.e. "close" the
LUKS container) when the screen safer engages and remap the LUKS
container when the screensaver is unlocked, then this is complicated.
It mau also not be what you want, given that unmapping the LUKS
container with open files is eiter not possible or can result in
arbitrary data corruption (I have not tried it). So you would
need to do something like this on screenlocker-engage:

1. Determine all open files in the LUKS container
2. Terminate all applications that have these files open
3. Unmount the LUKS container and verify it did unmount.
   If unmount fails, go to 1. (An application could have opened
   a file in between...) Maybe you can also do a ro remount first.
4. Unmap the LUKS container.

Now, this would need to be somehow script-driven from the 
screensaver. Whether automated application clsoe is a good idea 
depends very much on the situation and is generally _not_ a good 
idea.

Arno   


On Tue, Nov 29, 2011 at 01:22:35PM -0200, Marcos Barbosa wrote:
> I have a problem: I need authenticate gnome-screensaver (via PAM) with LUKS
> password. How i do that?
> 
> Best regards.
> 
> -- 
> Marcos Barbosa <marcosestevesbarbosa@gmail.com>

> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt


-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

  reply	other threads:[~2011-11-29 17:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-29 15:22 [dm-crypt] Verify LUKS password Marcos Barbosa
2011-11-29 17:31 ` Arno Wagner [this message]
2011-11-29 17:40   ` Yves-Alexis Perez
2011-11-29 18:17     ` Arno Wagner
2011-11-29 18:33       ` Marcos Barbosa
2011-11-29 17:42   ` Marcos Barbosa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111129173124.GA20264@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.