[Wine] Re: direct i/o using wine

oiaohm wineforum-user at winehq.org
Sat Mar 7 19:19:32 CST 2009


Running wine as root is highly not recommended some bad things have happened in the past.

Linux kernel is controlling hardware access alessandro_maffei.  All hardware access operations would have to be done Linux way or at a speed cost.  Like qemu or v86 emulation were the address you were using are virtual.

The kind of operation you are asking for is not simple to be made work.    http://tldp.org/HOWTO/IO-Port-Programming-2.html#ss2.2  Note the warning there about using device port system can be completely exploited by any program giving that ablity.   This also applies to Windows raw IO support.  Due to using raw hardware access any program doing that can in theory take out the OS.

You really need to seriously consider splitting your program in two.  Service or a Driver as root and interface as usermode.

Things are forbin from normal users for very good reasons under Linux.  You have to consider the security side of what you are doing alessandro_maffei.  No point having you program working on Windows and Linux if it equals running insecure.







More information about the wine-users mailing list