From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Pavel Machek <pavel@ucw.cz>
Cc: Dave Jones <davej@redhat.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
kernel list <linux-kernel@vger.kernel.org>,
Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: Re: [linux-pm] [RFC] userland swsusp
Date: Mon, 21 Nov 2005 12:47:44 +0100 [thread overview]
Message-ID: <200511211247.45558.rjw@sisk.pl> (raw)
In-Reply-To: <20051120220904.GB24132@elf.ucw.cz>
Hi,
On Sunday, 20 of November 2005 23:09, Pavel Machek wrote:
}-- snip --{
> > With what we have in-kernel, and a restricted /dev/mem, achieving the
> > attack you mention is a lot less feasible, as the attacker has no access
> > to the memory being written out to the suspend partition, even as root.
> > Even if they did, people tend to notice boxes shutting down pretty quickly
> > making this a not-very-stealthy attack.
>
> Can I read somewhere about security model you are using? Would it be
> enough to restrict /dev/[k]mem to those people that have right to
> update kernel anyway? Or your approach is "noone, absolutely noone has
> right to modify running kernel"? [Do you still use loadable modules?]
The problem is that, whatever the security model, if you have access to the
kernel memory (eg. via /dev/kmem), you can modify the security rules
themselves, so this should better be avoided.
Apart from this, IMO, if it's necessary to access the kernel memory directly
from a userland process, this means that the process' functionality really
belongs to the kernel. Consequently, the code in swsusp that needs
to access the kernel memory should stay in the kernel, and the rest
can go to the userland.
Greetings,
Rafael
next prev parent reply other threads:[~2005-11-21 11:47 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 21:29 [RFC] userland swsusp Pavel Machek
2005-11-15 21:32 ` Greg KH
2005-11-15 22:03 ` [linux-pm] " Pavel Machek
2005-11-15 22:25 ` Dave Jones
2005-11-15 23:32 ` Pavel Machek
2005-11-15 23:40 ` Dave Jones
2005-11-16 8:56 ` Pavel Machek
2005-11-16 21:41 ` Rafael J. Wysocki
2005-11-16 4:35 ` [linux-pm] " Dumitru Ciobarcianu
2005-11-16 6:14 ` Greg KH
2005-11-16 6:00 ` Nigel Cunningham
2005-11-16 16:50 ` Greg KH
2005-11-16 19:57 ` Nigel Cunningham
2005-11-16 21:35 ` Pavel Machek
2005-11-16 21:13 ` Nigel Cunningham
2005-11-16 22:47 ` Pavel Machek
2005-11-16 21:53 ` [linux-pm] " Nigel Cunningham
2005-11-23 10:16 ` Lorenzo Colitti
2005-11-23 12:02 ` Pavel Machek
2005-11-19 9:32 ` Rob Landley
2005-11-19 23:51 ` Pavel Machek
2005-11-18 19:36 ` Alan Cox
2005-11-18 21:18 ` [linux-pm] " Dave Jones
2005-11-18 21:20 ` Greg KH
2005-11-19 23:43 ` [linux-pm] " Pavel Machek
2005-11-20 21:48 ` Dave Jones
2005-11-20 22:09 ` [linux-pm] " Pavel Machek
2005-11-21 11:47 ` Rafael J. Wysocki [this message]
2005-11-21 14:19 ` Pavel Machek
2005-11-18 21:23 ` [linux-pm] " Arjan van de Ven
2005-11-18 22:07 ` Alan Cox
2005-11-19 4:18 ` Jesse Barnes
2005-11-19 8:44 ` Arjan van de Ven
2005-11-18 23:34 ` Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2005-11-16 16:10 Gross, Mark
2005-11-16 16:44 ` Greg KH
2005-11-16 20:20 ` [linux-pm] " Nigel Cunningham
2005-11-16 22:05 ` Pavel Machek
2005-11-16 21:13 ` Nigel Cunningham
2005-11-17 17:02 ` Olivier Galibert
2005-11-17 19:57 ` Lee Revell
2005-11-17 20:12 ` Olivier Galibert
2005-11-17 20:20 ` [linux-pm] " Lee Revell
2005-11-17 20:37 ` Dave Jones
2005-11-17 20:54 ` Lee Revell
2005-11-17 21:01 ` Dave Jones
2005-11-17 21:06 ` Chris Wright
2005-11-17 21:14 ` Lee Revell
2005-11-17 21:18 ` Chris Wright
2005-11-17 21:45 ` [linux-pm] " Diego Calleja
2005-11-17 21:09 ` Matthew Garrett
2005-11-16 19:10 ` Pavel Machek
2005-11-17 16:54 ` [linux-pm] " Olivier Galibert
2005-11-17 16:44 ` Greg KH
2005-11-17 17:31 ` Olivier Galibert
2005-11-17 20:15 ` Jacek Kawa
2005-11-17 21:56 ` [linux-pm] " Greg KH
2005-11-18 23:22 ` 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=200511211247.45558.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=pavel@ucw.cz \
/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