Re: [PATCH] x86: introduce /dev/mem restrictions with a configoption
From: Arjan van de Ven
Date: Thu Jan 31 2008 - 12:09:48 EST
On Thu, 31 Jan 2008 17:53:04 +0100 (CET)
Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx> wrote:
>
> On Jan 30 2008 12:48, Arjan van de Ven wrote:
> >Subject: [PATCH] x86: introduce /dev/mem restrictions with a config
> >option
> >
> >This patch introduces a restriction on /dev/mem: Only non-memory can
> >be read or written unless the newly introduced config option is set.
>
> Would not it be nicer to add a /dev/pcimem that implements the given
> restrictive semantics?
>
> Maybe it's just wishful thinking, but I am dreaming of an
> unprivileged X, and /dev/pcimem (owned by an 'x11' user or so) would
> be a step in that direction.
/dev/pcimem is wrong; X can use the exact bar in sysfs already.
This is more for compatibility with legacy X
--
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/