Re: Who wants to test cracklinux??

Jan Engelhardt
2006-04-03T09:12:06Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 607 bytes --]

>> 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
--