Prevent Linux from using some x86 peripherals
Hi all,
I am trying to prevent Linux from using some x86 peripherals. For instance, I want to prevent Linux from using the PCI and the serial port 1. Do you have any idea on how to achieve this? I though that an idea might be to edit the Linux GDT and exclude the I/O port and memory mapped locations of the peripherals I don't want it to have access to, but this will lead to a non flat model which is what Linux assumes. Any thoughts would be much appreciated. |
Hi,
Compile kernel and disable the drivers for PCI.Serial etc. You can also remove the modules using rmmod or modprobe -r |
Quote:
What I want is that every one that tries to access some particular I/O ports (e.g. 3F8h – 3FFh for serial port 1) and some particular addresses of memory mapped peripherals (e.g. PCI), not be able to do it. I hope it is clearer now what I want to achieve. Thanks. |
Why can't a user can write a user-process or a module by which he/she for any thing else we do ( if we prevent one that tries to access some particular I/O ports (e.g. 3F8h – 3FFh for serial port 1) and some particular addresses of memory mapped peripherals (e.g. PCI), not be able to do it. some how?)
|
Quote:
|
what if you load the drivers for those devices and then start a process that uses the devices... will that not effectively block a user from accessing the said device because it is already busy?
or what if you chmod the users out of the devices you dont want them to use? -Christopher |
Quote:
Thanks. |
All times are GMT -5. The time now is 09:12 AM. |