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)

all 18 comments

sorted by: hot top controversial new old
[–] 73 points 2 years ago* (1 child)

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 https://werat.dev/blog/how-wine-works-101/

  • source
  • hideshow 2 child comments
  • [–] [S] 5 points 2 years ago (3 children)

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

  • source
  • parent
  • hideshow 6 child comments
  • [–] 67 points 2 years ago* (1 child)

    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

    https://www.theverge.com/2021/10/5/22709918/valve-steam-deck-supported-games-anti-cheat-proton-eac-battleye-epic

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 17 points 2 years ago (1 child)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 2 years ago (1 child)

    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…

  • source
  • parent
  • hideshow 2 child comments
  • [+] 10 points 2 years ago* (last edited 1 year ago) (1 child)
  • [–] 8 points 2 years ago

    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

  • source
  • [–] 5 points 2 years ago (1 child)

    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.

  • source
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

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

  • source
  • [–] 1 point 2 years ago

    Not really

    It is the difference between kernel space and user space

  • source