lkml.org 
[lkml]   [2000]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Direct access to hardware
According to James Sutherland:
> On 21 Jul 2000, Miquel van Smoorenburg wrote:
> > It _is_ possible. Check out "capabilities".
>
> It isn't possible. Root can bypass them all completely, as long as
> /dev/kmem etc. exist.

If CAP_SYS_RAWIO isn't set, even root cannot open /dev/mem /dev/kmem
and /dev/port. Read linux/char/mem.c, check open_port etc

> Shall we delete capabilities on this basis? I think
> not - so why apply that argument to Andre's bugfix?

Well no, as many others have pointed out, it's the other way around-
capabilities should be applied to everything that gives access to
some hardware's firmware programming interface.

Mike.
--
Cistron Certified Internetwork Expert #1.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [from the cache]
©2003-2011 Jasper Spaans