Is it possible to translate windows kernel calls to linux ones
from Mwa@thelemmy.club to linux@lemmy.ml on 27 Aug 2024 11:25
https://thelemmy.club/post/16322173

hi ik wine can translate userspace calls but i wonder if its possible to translate windows kernel level calls to linux ones (eg,kernel level anticheat,etc)

#linux

threaded - newest

bjoern_tantau@swg-empire.de on 27 Aug 2024 11:31 next collapse

That’s more or less what a virtual machine does. And I bet cheating programs do as well.

breadsmasher@lemmy.world on 27 Aug 2024 11:36 next collapse

Wine does translate kernel calls. Perhaps youre misunderstanding how that is then exposed?

Wine translates windows calls (including system level/kernel level) but exposes/implements in userspace on linux.

It doesn’t only do windows userspace to linux userspace

Its a design decision from the wine team to not build it as a kernel module and to instead implement as an application in userspace

Have a read here werat.dev/blog/how-wine-works-101/

Mwa@thelemmy.club on 27 Aug 2024 11:40 collapse

then if it translates kernel calls why cant some kernel level anticheat run

breadsmasher@lemmy.world on 27 Aug 2024 11:44 next collapse

Anticheat isnt solely about kernel calls. Anticheat systems, depending on what one you are referring to, will inspect runtime memory, data loaded into RAM. It will do a number of things to verify memory isn’t being modified (which cheat engines, among other things, need to do).

Simply, Wine and linux load applications differently, anticheat systems see the difference and assume something nefarious is going on.

Its not as simple as just running anticheat in wine.

edit some additional info from a pretty old article

theverge.com/…/valve-steam-deck-supported-games-a…

Mwa@thelemmy.club on 27 Aug 2024 11:47 collapse

oh i thought its just translating the anti cheat calls,ty for the detailed explination

Norgur@fedia.io on 27 Aug 2024 12:13 collapse

sadly, no. Anticheat Systems are designed to be paranoid as fuck. So even some readout of the hardware used that WINE handles a tad differently than Windows might trip it.

Mwa@thelemmy.club on 27 Aug 2024 12:29 collapse

oh yeah some anticheat can ban you for playing games on your pc

Ashtefere@aussie.zone on 27 Aug 2024 21:39 next collapse

Also, (and this is from security research articles here) most kernel level anticheats seem to focus more on datamining than anticheat (see: anything from tencent)

Its so bad that a lot of corporate environments ban any work being done on machines that also have them installed (source: my employer)

Over time more and more anricheat companies have realised that personal data is gold and they are harvesting more and more of it.

Just read the eula some time. Most of it state in plain english that they send files from your documents, take screenshots and log keys.

And we give them kernel access…

Mwa@thelemmy.club on 28 Aug 2024 06:19 collapse

if any anti cheat datamines my data i am prob not playing that game

Ashtefere@aussie.zone on 28 Aug 2024 12:49 collapse

Well, buddy… I got news for you!

possiblylinux127@lemmy.zip on 27 Aug 2024 22:19 collapse

Because it is in user space not kernel space. Also Linux uses a monolithic kernel (no separate space for drivers)

Mwa@thelemmy.club on 28 Aug 2024 06:17 collapse

oh

hades@lemm.ee on 27 Aug 2024 11:40 next collapse

If you wanted to support all possible drivers, you would basically need to rewrite the entire kernel. You could make one specific anticheat work by supporting its specific calls, but this will take a lot of work, and will probably be broken with the first ever update.

In the past there were projects that supported specific types of drivers, such as ndiswrapper, but that had a very limited scope.

Here’s also an answer to a similar question: unix.stackexchange.com/…/installing-proprietary-w…

Mwa@thelemmy.club on 27 Aug 2024 11:44 collapse

oh alr ty

TCB13@lemmy.world on 27 Aug 2024 20:50 next collapse

The funny thing here is that Microsoft did a very good job in WSL v1 doing the exact opposite. Unlike Windows apps that run all broken under Wine, running GUI app on WSL worked just fine.

bhamlin@lemmy.world on 28 Aug 2024 00:10 collapse

They really did do a good job. The difference is that they have access to documentation about Linux that wine doesn’t have about Windows.

BCsven@lemmy.ca on 27 Aug 2024 21:40 next collapse

WINE loads the executable binary data into the memory, and runs it. The Machine doesn’t care if the code was made for Windows or Linux when it runs it

possiblylinux127@lemmy.zip on 27 Aug 2024 22:18 collapse

Not really

It is the difference between kernel space and user space