public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Jari Ruusu <jari.ruusu-+kynuGyeZW3HOG6cAo2yLw@public.gmane.org>
To: "John J. Lee" <jjl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
Cc: Robert Stark <rstark-viLzafFedAGELgA04lAiVw@public.gmane.org>,
	Linux Mailinglists
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	linux-crypto-qDhp9YYfzQpg9hUCZPvPmw@public.gmane.org,
	swsusp-LcL5texQODR2DW0IdvIQ2g@public.gmane.org,
	Sean Neakums <sneakums-iTLVOByc1N8@public.gmane.org>
Subject: Re: ACPI + loop(AES) + swsusp
Date: Mon, 19 Aug 2002 19:44:00 +0300	[thread overview]
Message-ID: <3D612050.F980C545@pp.inet.fi> (raw)
In-Reply-To: Pine.SOL.4.44.0208181454300.2717-100000@mimosa.csv.warwick.ac.uk

"John J. Lee" wrote:
> Given your point about security, wouldn't it be nice if there were yet
> another flag to indicate that encrypted partitions should just be
> turned off on suspend?
> 
> This is more useful than it sounds -- not all partitions are mounted all
> the time.  It might actually be convenient if you don't want to
> accidentally leave a partition accessible when you walk away from a
> machine and forget to losetup -d, or whatever.

Like Sean Neakums pointed out in earlier post to linux-crypto list, just
forcing unmount or losetup -d is not really an option. Maybe just checking
for encrypted loops in userspace _before_ starting suspend is a better
solution. Something like this:

#!/bin/bash
if losetup -a | grep -q -s "AES" ; then
    echo "Found active encrypted loops, suspend aborted"
    exit 1
fi
echo "now suspending..."
echo "1 0 0" > /proc/sys/kernel/swsusp

Regards,
Jari Ruusu <jari.ruusu-+kynuGyeZW3HOG6cAo2yLw@public.gmane.org>



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

  reply	other threads:[~2002-08-19 16:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05  8:26 ACPI + loop(AES) + swsusp Robert Stark
2002-08-05 16:08 ` Jari Ruusu
     [not found]   ` <3D4EA2EE.C5252944-+kynuGyeZW3HOG6cAo2yLw@public.gmane.org>
2002-08-18 13:58     ` John J. Lee
2002-08-19 16:44       ` Jari Ruusu [this message]
     [not found]         ` <3D612050.F980C545-+kynuGyeZW3HOG6cAo2yLw@public.gmane.org>
2001-11-02 13:56           ` Pavel Machek

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=3D612050.F980C545@pp.inet.fi \
    --to=jari.ruusu-+kynugyezw3hog6cao2ylw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=jjl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org \
    --cc=linux-crypto-qDhp9YYfzQpg9hUCZPvPmw@public.gmane.org \
    --cc=rstark-viLzafFedAGELgA04lAiVw@public.gmane.org \
    --cc=sneakums-iTLVOByc1N8@public.gmane.org \
    --cc=swsusp-LcL5texQODR2DW0IdvIQ2g@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox