Skip to content

u/ChrisTX4

In this archive from Apr 2014 to Oct 2026

4
posts
73
comments
0
media
1.8k
score
4 saved before deletion

Not MOKs, since they're valid for module signing.

Note: If you boot via shim and want to use custom keys for other boot options, enroll them in the Secure Boot signature database (db) instead of enrolling them as Machine Owner Keys (MOKs). Because all enrolled MOKs are typically trusted for kernel module signature verification regardless of whether they were used in the boot chain or not, EAC Linux v2 requires that they are all well-known.

Although Secure Boot signature database (db) keys are in the same position as MOKs on Fedora, Debian, etc. due to a kernel patch of theirs. Dunno what this will mean for the final requirements by Epic.

Edit: For maximum precision: You can't have MOKs in the MokList EFI variable. There's a way to load MOKs into Shim without going through MokList by having a signed shim_certificate*.efi blob, and that can be signed with Secure Boot db or the MOK vendor cert. That would still be possible in a dual boot scenario, and that will also produce a measurement into the TPM when such addon files are processed.

1 points

Grub?

Honestly grub is very tricky to get right with SB as you need to create an image with all required modules included.

https://wiki.archlinux.org/title/GRUB#Secure_Boot_support

This is the relevant section in the wiki about this specifically.

I would strongly recommend using a different boot loader as that’s at the very least a lot of manual steps over say systemd boot which doesn’t need to use modules and can be signed as is.

3 points

That’s an opinion. Fact to the matter is that people want to play their online games without cheaters. How you value that against the privacy concern and even how you perceive privacy concerns greatly varies.

Given that you’ll almost exclusively hear concerns of windows users about anti cheats demanding secure boot, tpm and Iommu, rather than privacy concerns, it’s almost safe to say that people do not share this opinion on this trade off with you by large and far. It’s even ironic that they complain about technologies you should have enabled on your computer regardless of whether you use Linux or windows and regardless of whether you game or not.

There’s also the matter of investment. Cheaters ruin player experience and gta online or counter strike have demonstrated how much this will harm the game if you just let it run its course. If it starts driving people off or just giving you a bad reputation, that’s gonna hurt your game. Given how competitive the market is, you can’t afford that, really.

1 points

I already explained why server-side detection isn't really viable alone. Don't take my word for it, Riot explained this themselves:

Q: Why not AI Anti-Cheat?

We do use machine models to predict the likelihood that a player is cheating, but using only data the game server receives does not currently afford us the granularity necessary to detect "informational" cheats that do not modify player input—ESPs, FoW leaks, and radar hacks are almost totally undetectable. VALORANT and LoL both rely heavily upon the art of gathering or obscuring information, so cheats like these are very damaging, ultimately necessitating traditional anti-cheat anyway.

And even solely for aimbots, recall just isn't that great. The best models can only identify around 30-50% of cheats on server-sided player input alone, and this is not sufficient for a free competitive game with literally no barriers to reentry. Worse, aimbot developers have already started offering "humanization" features to prevent player reports, and while they're still mostly goofy pseudo-random noise generators, at some point, a particularly enterprising young cheater will spend the weekend training a model to "move the mouse like it's a real boy." Honestly, I wouldn't be surprised to see this exact white paper in the next six months, probably titled "Operation Geppetto."

Relying on these two alone though will be a problem for people that aren't rage hacking. To give an example, there's cheaters - very popular in Tarkov I hear - that use DMA cards to extract information and then display on a second device where all enemies are. This is a huge advantage, but how would that detected by server-side review or community review? If you make it too obvious, sure, but in most cases this will look like the player just being "lucky".

That isn't saying community review and server-side detection aren't important. Server-side detection will for instance make ragehacking impossible. That's immediately obvious. Same with community review, there's always going to be cheaters making their own hacks, or using really good paid hacks, that you just can't detect all that easily.

1 points

I need to explain the technical background otherwise what I was saying wouldn’t make sense.

As for putting your data at risk: even if a program runs with normal user mode permissions it can access all your user files - there’s no pressure vessel on windows isolating games like we have.

You’ve also not made any points other than treading on the privacy concern. That’s a fair concern that I share as well. However, that doesn’t change that cheaters remain a huge problem for online games. If you’re saying they shouldn’t use kernel level anticheats; then you also have to kinda say what they should do instead?

1 points

Hijacking top comment. Don’t do this, the problem will just reappear.

The issue is that there’s a default EFI bootloader path that will always be considered by the bios without an EFI entry, efi/boot/bootx64.efi. Systemd boot installs to that by default, and will overwrite whatever is there every time systemd-boot-update.service runs an update - so every systemd update. Windows will do the same, and so will grub if run without —removable.

If you use a shared EFI system partition between multiple os, they will fight that default location. The solution is to create an EFI boot entry for systemd-bootx64.efi and windows bootmgfw.efi and use those.

For systemd boot follow the wiki:

efibootmgr:
# efibootmgr --create --disk /dev/sdX --part Y --loader '\EFI\systemd\systemd-bootx64.efi' --label "Linux Boot Manager" --unicode

This can be done from an arch live media as well, no need to even chroot.

You can also add an entry to the windows boot mgr so you can chainload from that, if there’s ever a problem. I would recommend it, since if your bios gets reset, all nvram entries are gone, including the boot loader ones, and then only bootx64 will be found. Having such an entry means that you’ll be always able to boot into Linux regardless.

PS it’s also possible to create an EFI entry from windows using bcdedit, but it’s a bit more involved as it requires mounting the ESP to a drive letter first. I’m sure an LLM could produce reasonable instructions but given that this can easily go wrong if you don’t know what you’re doing, I’m not providing instructions here. You should have an arch boot media around anyway.

11 points

Anticheats have been running with administrator permissions on windows for decades. Even punk buster did back then. You need to have them to inspect the system, and you need to inspect the system to ensure there’s no cheats present.

Without admin permissions, you can only scan the process memory. The problem is there that on Linux one uses Proton, whereas Windows uses its own system binaries. These have authenticode, a system present in PE binaries, but not ELF, that allows signing binaries with digital certificates. Windows is fully signed, and so is almost all ISV software. Drivers need to be signed as well, kinda like the kernel module signatures we have. The difference is that kernel mod signatures are on almost all distros (bar enterprise ones like Rhel really) done with ephemeral keys generated during compilation and these keys change with every build. Users can also add their own keys via MOK (and via secure boot db on most distros, but not arch).

Side note: in this day and age, one should enforce module signatures as well, preferably by kernel lockdown. I’d go so far as to call any setup without secure boot (own keys!) and kernel lockdown in 2026 insecure.

What this means in practice: I can scan my process memory on windows quickly and determine there’s only unaltered Microsoft code in those DLLs I have loaded. How would you determine proton to be unmodified? There’s tons of different proton forks and versions people use as well.

And the same then goes to any native binaries proton loads in turn.
Drivers and kernel code can be freely modified by users, too. I could hide cheat code in any of this. If I modified a Linux driver to add wallhacks or an aimbot, a game could never see this.

AI based cheat detection isn’t useful here as it is countered by using AI based cheats. Instead of having the mouse lock straight on the enemy head, you train models that emulate human mouse movement. Differentiating a good player from somebody with good cheats by just their gameplay or server information is not possible.

What kernel level anticheats on Windows do is to ensure to keep unsigned code out of the kernel. Windows will require a Microsoft signature if test signing mode isn’t enabled, and anticheats will bark immediately if that’s the case. Together with a TPM measured boot, the idea is that this makes the kernel inaccessible to unauthorised user code, ie cheats. Cheaters are using vulnerable drivers mostly to still get in, which is why the Memory Integrity mode windows has comes with a list of bad drivers to block.

For this reason, Riot Vanguard nowadays considers this setup sufficient to defend itself without Vanguard being loaded at boot time.

The issue with anticheat on Linux isn’t that there’s no kernel level access for them. In the midterm we will likely see these anticheat drivers to be scaled back and rely more on modern windows security constructions. On Linux, this will never be possible due to the openness of the system.

It’s a bad dilemma: block Linux users and require kernel level access or allow them to run without but risk that determined cheat makers could get in. The worst part? If Linux indeed grows in popularity, it’s likely to create a market for Linux cheats. Currently that’s not really a thing.

1 points

If you want to have an online game without cheaters, unfortunately yes. There exists no alternative to detect kernel-level or DMA cheats. It's either that or for games that people will bother to make such for will be overrun by cheaters using those.

Furthermore, kernel level access does not really grant more access to your files and data than programs run with Administrator access have anyway. Either can read all your personal files.

1 points

No this is because they had bootmgfw.efi as an EFI variable entry and now windows replaced bootx64.efi upon update. Bootx64 is always recognised from the bios, but any other path needs efi boot manager variables.

They must have had systemd boot rely only on bootx64, which you must not do in multi boot scenarios. So their boot config was:

  1. efi/boot/bootx64.efi
  2. efi/boot/bootmgfw.efi

1 used to be systemd boot but now got updated to windows boot manager due to an update to the same. Thus it seems now windows boot manager from two different paths and shows it twice.

Just using an EFI boot entry for efi/linux/systemd-boot.efi would have prevented this problem from ever happening.

1 points

But most online games have optional items, cosmetic items and pay to skip items. In most games featuring these you can play and enjoy the game perfectly fine without paying a single dime.

You might disagree on the experience this gives, but judging users for enjoying something is a weird stance.

As for unrestricted access: kernel level anticheats are needed to defeat kernel level cheats. You can’t inspect kernel memory from user space and thus a cheat driver can be entirely invisible to a user space program. As in, there’s no programmatic way to implement a detection of such drivers. The same goes for DMA cheats: the only way to beat DMA is enabling IOMMU and configuring it appropriately. This can only be done from the kernel, not from user space.

That’s why all the massive online games enforce kernel level anticheats. It’s de facto a necessary evil. I despise this as much as the next guy, and while I don’t have windows installed or could even boot it without first adding Microsoft keys back to the secure boot database, I have to say I can understand why large game devs refuse to enable Linux compatibility in their anticheats.

2 points

Is everyone in this thread busy just shitting on Windows instead of providing information?!

In an ESP, there’s .efi files that can be run by the bios like programs in a booted OS. There can be more of them that aren’t bootloaders (shim is 2-3 efi files for example), so only EFI\BOOT\BOOTX64.efi in each EFI system partition is always considered a bootloader. Everything else needs entries in the EFI variables so that the UEFI knows it’s there.

systemd-boot by default will only use that bootx64.efi and not register an EFI variable. But every bootloader (and systemd boots installer does so too) writes over the bootx64 file on installation - and so does windows when it reinstalls/updates the bootloader.

You can tell this is what happened because of the doubled windows boot manager entry. It was found as bootx64.efi and via EFI variable, bootmgfw.efi was found, too. Since they’re different files, this leads to this doubled up scenario.

Only use bootx64 if your ESP isn’t shared between multiple systems trying to install their bootloaders to the same ESP.

The very simple solution to have a stable dual boot is to just register systemd-bootx64.efi via EFI boot entries, so just:

efibootmgr --create --disk /dev/sdX --part Y --loader '\EFI\systemd\systemd-bootx64.efi' --label "Linux Boot Manager" --unicode

If you don’t have a Linux around boot into windows and do this: open a command prompt or PowerShell and run:

bcdedit /copy "{bootmgr}" /d "Linux Boot Manager"
bcdedit /set "{guid}" path \EFI\systemd\systemd-bootx64.efi

This will create an entry in windows boot manager that allows chainloading systemd-boot. This obviously doesn’t work when using TPM unlocks though.

There are also ways to use bcdedit to create the proper EFI entry for Linux from within windows but that’s somewhat more complicated to do, and requires mounting the ESP in Windows to a drive letter.

3 points

It is possible to achieve something similar to PCI pass through with KVM on hyper-v using Discrete Device Assignment. Both solutions work as hyper visors and deliver near native performance each. The problem however is that to my understanding DDA is not officially supported on Windows 10 (only on windows server) and while it still works it requires a bit of cooperation from the GPU driver - which AMD grants but Nvidia apparently only supports for specific gpu lines. Either way this is not a beginner setup.

5 points

Never use pip to install to the global site packages: that's almost guaranteed to break eventually on conflicts.

It is generally preferred to use either pip install --user to install in the user's site packages, or even better, to use a virtual environment. Not only does using pip globally leave files untracked by package management in /usr, but it can also incite conflicts with other packages if a package dependency. pip doesn't know which site packages are managed by the system and which ones aren't. Upgrading a dependency can break other system components and the upgrade performed by pip itself will be overwritten if pacman updates it later on.

In the worst case, you're looking at something like numpy, which is provided as a binary wheel in pip due to the dependency on OpenBLAS. And even if installed from source using pip (which you can force), you would only get identical results if using an identical site.cfg.

If you really need a package globally, package it and install it through pacman - this cannot possibly cause such effects and will always leave existing packages functional. There's also some pip to PKGBUILD tools out there, see here.

4 points

Wine reimplements Windows API functions on top of the POSIX API. Thus it only makes sense for it to use some code of that. Check the CPP/include/myWindows folder in the p7zip source code, there's some Wine source for a few Rtl Windows APIs.

And yes, because of the way Wine works, its code can be used in contexts far different from Wine itself. For instance, you can use the WineD3D component on Windows for better support for ancient Direct3D 1-7 interfaces.

2 points

This is complete inaccurate. 7zip is a very Windows API heavy codebase, and what p7zip does for the most part is to take a given version of the commandline 7z util from the respective Windows version and use macros, Wine implementations of some functions and similar tricks to port that part to UNIX systems. That being said, if any bug/security vulnerability exists in the Windows version, it's very likely to port over the exact same fashion. Arch uses backports for some of the CVEs at least.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.