Re: Who wants to test cracklinux??
From: Jan Engelhardt
Date: Mon Apr 03 2006 - 05:12:25 EST
>> is there any difference? I mean... if you can outb you for all intents
>> and purposes are root anyway ;) (like you can overwrite any memory in
>> the system etc etc)
>
>There are two clear uses
>
>#1 Its possible to write such a module to allow only some ports to be
>accessed, eg to export a PCI device for learning purposes
>
You can do parts of that in userspace, which is A Good Thing(tm).
Write a SUID wrapper which ioperm's (or denies it) a range request, opens
/dev/mem or /dev/port and then drops privilegues. VoilÃ.
(Not sure if outb requires root too, besides ioperm.)
Jan Engelhardt
--