Files
fabolous005 95954b2d6b Prepare for publication: license, disclaimer, limitations, kernel 7.3.7, polkit action rename
- LICENSE: ebuilds GPL-2.0-only (LICENSE.GPL-2), everything else MIT.
- README: unofficial/no-affiliation and account-risk disclaimer; requirements
  and limitations (NVIDIA/ZFS/r8125 EAC modules not packaged, keys, ESP,
  one tested machine).
- AGENTS.md: the values table is the author's example machine.
- progress: CachyOS's key is on Epic's trusted list (was wrong).
- overlay: kernel 7.3.7_p2 with module cleanup, compat -r3 (polkit action
  de.root64.engler-labs.eac-openrc-compat), pkgcheck fixes.
2026-12-04 09:13:45 +01:00

149 lines
8.9 KiB
Markdown

# Fortnite on Gentoo with OpenRC (EAC Linux v2)
Easy Anti-Cheat Linux v2 needs two things Gentoo with OpenRC does not have:
1. **A boot chain signed by a key Epic trusts.** Gentoo has none, so a separate
boot entry runs CachyOS's signed EAC kernel through CachyOS's signed
systemd-boot, with Secure Boot, TPM measurement and `lockdown=integrity`.
2. **systemd for EAC's anti-cheat service.** On the first protected launch, EAC
installs a socket-activated systemd service with `systemd-run`, `pkexec` and
`systemctl`. A small compatibility layer maps those calls to OpenRC.
> **Unofficial.** Not affiliated with or endorsed by Epic Games, CachyOS or
> Gentoo. Fortnite on Linux is a beta, and Epic supports CachyOS, not this
> combination of the CachyOS kernel with Gentoo. Epic can change EAC in ways
> that break it, and any consequence for your game account is your own risk.
> Nothing here touches the anti-cheat's checks: EAC verifies the same
> CachyOS-signed boot chain as on CachyOS. The compatibility layer only lets
> EAC's setup install and start its own, unmodified service on OpenRC, and
> answers its `systemctl --version` check (systemd >= 249) with `systemd 257`.
This repository holds the ebuilds (kernel, compatibility layer, launcher), the host configuration, the debugging
tools used to work out the service install, and the documentation.
**Status (2026-12-04): working** on the author's desktop (Gentoo, OpenRC,
elogind, Hyprland, Intel Raptor Lake + AMD eGPU). EAC accepted the boot, the
service installed itself, and Fortnite ran creative islands with active
anti-cheat sessions. Battle Royale matchmaking is untested. This is the only
machine it was tested on; reports from other setups are welcome.
## Requirements and limitations
- UEFI with Secure Boot, TPM 2.0 and IOMMU (VT-d / AMD-Vi) enabled.
- Secure Boot keys you control: `eac-boot enroll` signs the db update with
your KEK, by default sbctl's (`sbctl create-keys` and `sbctl enroll-keys
--microsoft` first, in Setup Mode, if you still run the factory keys).
- OpenRC with elogind and polkit, and a polkit authentication agent in the
desktop session. The compositor does not matter; Hyprland is only the
author's.
- An ESP (vfat) with room for the EAC kernel and initramfs (about 200 MB), and
dracut. The EAC kernel always boots through CachyOS's signed systemd-boot in
its own firmware entry; your own boot manager (GRUB, rEFInd, EFI stub,
another systemd-boot) stays the default.
- Only modules CachyOS built and signed load in the EAC boot. The ebuild
packages the kernel's own modules, not CachyOS's separately signed
`linux-cachyos-eac-nvidia-open`, `-nvidia-580xx`, `-zfs` and `-r8125`
packages: **NVIDIA GPUs and a ZFS root do not work yet**, and
`linux-mod-r1`/DKMS modules (bcachefs, kvmfr, ...) never will.
- Lockdown in the EAC boot blocks MSR writes (undervolting), `/dev/mem` and
hibernation.
- The kernel ebuild must follow CachyOS's releases: the mirror keeps only
current packages, so an old ebuild stops fetching.
## How the pieces fit
```
firmware: Secure Boot on, db = whatever was there + CachyOS EAC CA
-> firmware entry "CachyOS EAC": CachyOS-signed systemd-boot (measures into the TPM)
-> CachyOS-signed linux-cachyos-eac + host-built dracut initramfs
cmdline + lockdown=integrity lsm=...,bpf iommu.passthrough=0 intel_iommu=on
module.sig_enforce=1 sysctl.kernel.kexec_load_disabled=1
-> Hyprland session: hyprpolkitagent (autostarted)
-> EpicGamesLauncher = eac-run + launcher; while it runs:
systemd-run-agent (user) + socket-activate.easyanticheat_eos (root, via pkexec + polkit rule)
-> Proton -> Fortnite + EAC bootstrapper
first launch: EAC setup -> systemd-run --user -> pkexec -> install -> systemctl start
every launch: game connects to @easyanticheat_eos -> service starts, stops after the game
```
Nothing EAC-related runs at boot or between game sessions. The normal Gentoo boot stays the default. The EAC entry is last in BootOrder
and is started once with `eac-boot boot` or from the firmware's boot menu.
## Contents
| Path | What it is |
| --- | --- |
| [`AGENTS.md`](AGENTS.md) | installation runbook for agents (and humans), with the author's machine as the worked example; replace its values with yours |
| [`docs/troubleshooting.md`](docs/troubleshooting.md) | error messages and their causes, log locations, debugging tools |
| [`docs/progress.md`](docs/progress.md) | how it got here, decisions, open items |
| `overlay/` | Portage overlay (`repo_name` `eac-gentoo-openrc`) with the three packages; snapshot of the author's `febuild` overlay |
| `overlay/sys-kernel/cachyos-eac-kernel-bin/` | CachyOS's EAC kernel, signed systemd-boot, EAC CA and `eac-status`, repackaged byte for byte, plus the `eac-boot` tool. [README](overlay/sys-kernel/cachyos-eac-kernel-bin/files/README.md) |
| `overlay/sys-apps/eac-openrc-compat/` | the systemd compatibility layer for EAC's service on OpenRC, and `eac-run`. [README](overlay/sys-apps/eac-openrc-compat/files/README.md) |
| `overlay/games-util/epic-games-launcher-bin/` | Epic's official Linux launcher from its `.deb`, self-update off, started through `eac-run` |
| `host/udev/61-dri-igpu.rules` | stable `/dev/dri/igpu` name for the iGPU at PCI `0000:00:02.0`; goes to `/etc/udev/rules.d/` |
| `host/portage/package.use/intel-microcode` | `initramfs` USE flag, so dracut puts early microcode into the EAC initramfs; goes to `/etc/portage/package.use/` |
| `tools/` | debugging tools, not installed by anything. [README](tools/README.md) |
## The packages
**`sys-kernel/cachyos-eac-kernel-bin`** installs, unchanged, from
`mirror.cachyos.org/repo/x86_64/cachyos/`: `linux-cachyos-eac` (kernel and
signed modules to kmod's module directory, `/lib/modules/<ver>-cachyos-eac/`),
`systemd-boot-cachyos-signed`, `cachyos-eac-signing-key` and `eac-status` from
`cachyos-settings`. Nothing is stripped or re-signed: a second signature fails
EAC. `eac-boot` appends the CachyOS CA to db (keeping every other key), puts
kernel, dracut initramfs and systemd-boot on the ESP, creates the firmware entry
and boots it once. ESP, directories, entry names, command line and keys are
set in `/etc/eac-boot.conf`.
**`sys-apps/eac-openrc-compat`** provides exactly what EAC's setup
(`EasyAntiCheat_EOS_Setup` 0.1.7) calls:
| Installed file | Replaces |
| --- | --- |
| `/usr/lib64/libsystemd.so.0` -> `libelogind.so.0` | libsystemd (the setup uses only `sd_listen_fds`, `sd_is_socket_unix`, `sd_notify`) |
| `/usr/bin/systemd-run` + `/usr/libexec/eac-openrc-compat/systemd-run-agent` | `systemd-run --user`: the agent runs commands in the graphical session, outside Proton's no_new_privs sandbox, so `pkexec` works |
| `/usr/bin/systemctl` | `systemctl` for `NAME.socket`/`NAME.service` when the OpenRC service `socket-activate.NAME` exists; other units fail as on a non-systemd host |
| `/usr/libexec/eac-openrc-compat/socket-activate`, `/etc/init.d/socket-activate`, `socket-activate.easyanticheat_eos` | systemd socket activation of `@easyanticheat_eos` |
| `/usr/bin/eac-run`, `socket-activate-ctl` + polkit action | the always-on systemd socket: starts agent and listener for the launcher's lifetime only |
**`games-util/epic-games-launcher-bin`** installs Epic's official `.deb`
(versioned download, system webkit-gtk 4.1) to `/opt/epic-games-launcher`, with
a wrapper `EpicGamesLauncher` that turns self-update off and runs it through
`eac-run` when that is installed.
The compatibility layer does not pretend that systemd booted the machine: `/run/systemd/system`
stays absent and `sd_booted()` returns 0.
## systemd distributions
On a systemd system the compatibility layer is not needed, and it blocks
`sys-apps/systemd`. EAC's setup uses the real `systemd-run`, `systemctl` and
socket activation there. A Gentoo systemd install should work with only
`cachyos-eac-kernel-bin`, the launcher package and a polkit agent in the
desktop session (untested).
Other distributions use their own signed kernel or CachyOS's packages directly;
see [AGENTS.md](AGENTS.md#systemd-systems).
## Safety
- Never re-sign, strip or `sbctl sign` the CachyOS kernel or systemd-boot.
- Never use `sbctl enroll-keys --append`: it enrolls every key a second time.
Never rewrite db with `sbctl enroll-keys` either: it drops keys sbctl does not
manage. `eac-boot enroll` only appends.
- In the firmware, only toggle Secure Boot. "Reset to Setup Mode", "Restore
Factory Keys" and "Clear All Keys" erase the custom db.
- A BitLocker Windows install asks for its recovery key after db or Secure Boot
changes.
## License
The ebuilds are GPL-2.0-only, everything else is MIT; see [LICENSE](LICENSE).
## Maintenance
The author's `febuild` overlay is canonical for the packages. After changing an
ebuild there, copy the package directory into `overlay/` and commit both.
CachyOS deletes old packages from its mirror; bumping is described in the
[kernel package README](overlay/sys-kernel/cachyos-eac-kernel-bin/files/README.md#bumping).