From 95954b2d6b9761a8e3a615a7e6a26bb0a73b7240 Mon Sep 17 00:00:00 2001 From: fabolous005 Date: Fri, 4 Dec 2026 09:13:45 +0100 Subject: [PATCH] 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. --- AGENTS.md | 12 +- LICENSE | 31 ++ LICENSE.GPL-2 | 338 ++++++++++++++++++ README.md | 41 ++- docs/progress.md | 6 +- docs/troubleshooting.md | 2 +- .../files/EpicGamesLauncher | 0 .../epic-games-launcher-bin-0.127.0 | 14 + .../sys-apps/eac-openrc-compat-0.1-r2 | 13 + .../sys-apps/eac-openrc-compat-0.1-r3 | 13 + .../cachyos-eac-kernel-bin-7.3.5_p2-r3 | 14 + .../cachyos-eac-kernel-bin-7.3.7_p2 | 14 + ...ebuild => eac-openrc-compat-0.1-r3.ebuild} | 6 +- .../eac-openrc-compat/files/README.md | 2 +- ...ot64.engler-labs.eac-openrc-compat.policy} | 2 +- .../sys-apps/eac-openrc-compat/files/eac-run | 0 .../eac-openrc-compat/files/socket-activate | 0 .../files/socket-activate-ctl | 0 .../eac-openrc-compat/files/systemctl | 0 .../eac-openrc-compat/files/systemd-run | 0 .../eac-openrc-compat/files/systemd-run-agent | 0 .../cachyos-eac-kernel-bin/Manifest | 4 +- ...=> cachyos-eac-kernel-bin-7.3.7_p2.ebuild} | 13 +- .../cachyos-eac-kernel-bin/files/eac-boot | 0 24 files changed, 506 insertions(+), 19 deletions(-) create mode 100644 LICENSE create mode 100644 LICENSE.GPL-2 mode change 100755 => 100644 overlay/games-util/epic-games-launcher-bin/files/EpicGamesLauncher create mode 100644 overlay/metadata/md5-cache/games-util/epic-games-launcher-bin-0.127.0 create mode 100644 overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r2 create mode 100644 overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r3 create mode 100644 overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.5_p2-r3 create mode 100644 overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.7_p2 rename overlay/sys-apps/eac-openrc-compat/{eac-openrc-compat-0.1-r2.ebuild => eac-openrc-compat-0.1-r3.ebuild} (86%) rename overlay/sys-apps/eac-openrc-compat/files/{org.gentoo.eac-openrc-compat.policy => de.root64.engler-labs.eac-openrc-compat.policy} (90%) mode change 100755 => 100644 overlay/sys-apps/eac-openrc-compat/files/eac-run mode change 100755 => 100644 overlay/sys-apps/eac-openrc-compat/files/socket-activate mode change 100755 => 100644 overlay/sys-apps/eac-openrc-compat/files/socket-activate-ctl mode change 100755 => 100644 overlay/sys-apps/eac-openrc-compat/files/systemctl mode change 100755 => 100644 overlay/sys-apps/eac-openrc-compat/files/systemd-run mode change 100755 => 100644 overlay/sys-apps/eac-openrc-compat/files/systemd-run-agent rename overlay/sys-kernel/cachyos-eac-kernel-bin/{cachyos-eac-kernel-bin-7.3.5_p2-r3.ebuild => cachyos-eac-kernel-bin-7.3.7_p2.ebuild} (87%) mode change 100755 => 100644 overlay/sys-kernel/cachyos-eac-kernel-bin/files/eac-boot diff --git a/AGENTS.md b/AGENTS.md index 0e51bba..3cc66b1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,6 +4,12 @@ This runbook installs everything in this repository on the author's desktop, "lucifer". It is written for that machine; the values below are its values. For systemd systems see [the last section](#systemd-systems). +**On any other machine:** the table below is an example. Before running +anything, fill in each value for the machine at hand (ask the user for what +cannot be read off the system), and check the limitations in +[README.md](README.md#requirements-and-limitations): stop if one applies. Every +`lucifer`-specific remark ("On lucifer ...") is only valid there. + Read [README.md](README.md) first. When a step fails, look the message up in [docs/troubleshooting.md](docs/troubleshooting.md). @@ -202,8 +208,8 @@ pgrep -f systemd-run-agent # nothing ``` No password dialog may appear for `eac-run`: the polkit action -`org.gentoo.eac-openrc-compat.socket-activate` is allowed for the active -session (`pkcheck --action-id org.gentoo.eac-openrc-compat.socket-activate +`de.root64.engler-labs.eac-openrc-compat.socket-activate` is allowed for the active +session (`pkcheck --action-id de.root64.engler-labs.eac-openrc-compat.socket-activate --process $(pgrep -x Hyprland)` exits 0). Polkit agent check, during the `eac-run` window: @@ -221,7 +227,7 @@ doas -n eac-boot boot # reboots; the ssh session drops After the reboot: ```sh -uname -r # 7.3.5-2-cachyos-eac (or the current version) +uname -r # 7.3.7-2-cachyos-eac (or the current version) doas -n eac-status # every line [ OK ] cat /proc/sys/kernel/tainted # 0 ``` diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..624a452 --- /dev/null +++ b/LICENSE @@ -0,0 +1,31 @@ +The ebuilds (overlay/*/*/*.ebuild) are distributed under the GNU General +Public License, version 2 (GPL-2.0-only); the full text is in LICENSE.GPL-2. + +Everything else in this repository (the files in overlay/*/*/files/, tools/, +host/ and the documentation) is distributed under the MIT License below. + +The software the ebuilds download (CachyOS's kernel, systemd-boot, signing key +and eac-status; Epic's launcher) is not part of this repository and keeps its +own licenses. + +MIT License + +Copyright (c) 2026 fabolous005 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/LICENSE.GPL-2 b/LICENSE.GPL-2 new file mode 100644 index 0000000..e5afae9 --- /dev/null +++ b/LICENSE.GPL-2 @@ -0,0 +1,338 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Moe Ghoul, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/README.md b/README.md index 86cd6e2..208dcd9 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,46 @@ Easy Anti-Cheat Linux v2 needs two things Gentoo with OpenRC does not have: 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. +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 @@ -40,7 +73,7 @@ and is started once with `eac-boot boot` or from the firmware's boot menu. | Path | What it is | | --- | --- | -| [`AGENTS.md`](AGENTS.md) | installation runbook for agents, for the author's machine | +| [`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 | @@ -103,6 +136,10 @@ see [AGENTS.md](AGENTS.md#systemd-systems). - 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 diff --git a/docs/progress.md b/docs/progress.md index d3a32b5..069140e 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -72,5 +72,7 @@ the launcher (Heroic, Lutris) needs `eac-run` around that program too. - Battle Royale matchmaking untested. - The layer matches EAC setup 0.1.7; a later setup may call something new. -- CachyOS is not on Epic's published key list from October; Epic accepted the - CachyOS EAC CA in practice (12-02/03). +- CachyOS's EAC key is on Epic's list of trusted distribution keys (CachyOS + developer Peter Jung, heise, 2026-11). Epic supports CachyOS; that the same + boot chain is accepted under a Gentoo userland was observed here (12-03), not + promised by Epic. diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index f62986e..a4c68fc 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -36,7 +36,7 @@ Polkit check from the session without a terminal: | Symptom | Cause | Fix | | --- | --- | --- | | Game reports EAC not running / cannot connect | launcher not started through `eac-run`, so the listener is stopped | start the launcher as `EpicGamesLauncher` or `eac-run ` | -| `eac-run: could not start socket-activate.easyanticheat_eos`, or a password dialog on every launch | not started from the active graphical session (ssh, another seat) | start it from the desktop session; check with `pkcheck --action-id org.gentoo.eac-openrc-compat.socket-activate --process $$` | +| `eac-run: could not start socket-activate.easyanticheat_eos`, or a password dialog on every launch | not started from the active graphical session (ssh, another seat) | start it from the desktop session; check with `pkcheck --action-id de.root64.engler-labs.eac-openrc-compat.socket-activate --process $$` | | Listener still running after the launcher closed | the EAC service still serves a game, or the listener is in a runlevel | expected; it stops with the game, or `rc-update del socket-activate.easyanticheat_eos` | | Service log prints the setup's usage text and exits 1 | `EAC_MODE_SERVICE=1` missing | check `socket_env` in `/etc/conf.d/socket-activate.easyanticheat_eos` | | `systemd did not pass exactly the socket '@easyanticheat_eos'` | started without socket activation | start it only through the OpenRC service | diff --git a/overlay/games-util/epic-games-launcher-bin/files/EpicGamesLauncher b/overlay/games-util/epic-games-launcher-bin/files/EpicGamesLauncher old mode 100755 new mode 100644 diff --git a/overlay/metadata/md5-cache/games-util/epic-games-launcher-bin-0.127.0 b/overlay/metadata/md5-cache/games-util/epic-games-launcher-bin-0.127.0 new file mode 100644 index 0000000..e4fccc9 --- /dev/null +++ b/overlay/metadata/md5-cache/games-util/epic-games-launcher-bin-0.127.0 @@ -0,0 +1,14 @@ +DEFINED_PHASES=install postinst postrm preinst unpack +DESCRIPTION=Epic Games Launcher (official Linux preview) +EAPI=8 +HOMEPAGE=https://store.epicgames.com/ +IDEPEND=dev-util/desktop-file-utils x11-misc/shared-mime-info +INHERIT=desktop unpacker xdg +KEYWORDS=-* ~amd64 +LICENSE=all-rights-reserved +RDEPEND=dev-libs/glib:2 dev-libs/libayatana-appindicator net-libs/libsoup:3.0 net-libs/webkit-gtk:4.1 sys-apps/dbus x11-libs/cairo x11-libs/gdk-pixbuf:2 x11-libs/gtk+:3 x11-libs/libX11 x11-misc/xdg-utils +RESTRICT=bindist mirror strip +SLOT=0 +SRC_URI=https://content-download-egs.distro.on.epicgames.com/Builds/EGLv2/0.127.0%2Bgc5cf008/Linux/EpicGamesLauncher-x86_64.deb -> epic-games-launcher-bin-0.127.0.deb +_eclasses_=desktop e447b5f77146d69797e9f03ff177f3f1 eapi9-pipestatus d2c134036ac31c3085aebc9147f572bd multiprocessing 45d0620f25c2f063ad6276ecd9ed9399 toolchain-funcs 58a918e3a42d0156f010dcfd43725be5 unpacker 4332a3f8fa974013f54f3bf39bab0de4 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 xdg 3ef49a87c52c8b77c476351195dfe575 +_md5_=a7ac36a9a9023cb658271ef7cab974c7 diff --git a/overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r2 b/overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r2 new file mode 100644 index 0000000..dd2edde --- /dev/null +++ b/overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r2 @@ -0,0 +1,13 @@ +DEFINED_PHASES=install postinst setup +DESCRIPTION=systemctl, systemd-run and socket activation for the EAC Linux v2 service on OpenRC +EAPI=8 +HOMEPAGE=https://easy.ac +INHERIT=python-single-r1 +IUSE=python_single_target_python3_13 python_single_target_python3_14 +KEYWORDS=~amd64 +LICENSE=MIT +RDEPEND=python_single_target_python3_13? ( dev-lang/python:3.13 ) python_single_target_python3_14? ( dev-lang/python:3.14 ) !sys-apps/systemd sys-apps/openrc sys-apps/util-linux sys-auth/elogind sys-auth/polkit sys-process/procps +REQUIRED_USE=^^ ( python_single_target_python3_13 python_single_target_python3_14 ) +SLOT=0 +_eclasses_=eapi9-pipestatus d2c134036ac31c3085aebc9147f572bd multiprocessing 45d0620f25c2f063ad6276ecd9ed9399 toolchain-funcs 58a918e3a42d0156f010dcfd43725be5 python-utils-r1 e45154171a34e8f14a1ea13f5202ce7b python-single-r1 47d8ac9be330c9366112b78fd4f8ce57 +_md5_=2ec17f179454975bf701ae687de4e089 diff --git a/overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r3 b/overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r3 new file mode 100644 index 0000000..86f451f --- /dev/null +++ b/overlay/metadata/md5-cache/sys-apps/eac-openrc-compat-0.1-r3 @@ -0,0 +1,13 @@ +DEFINED_PHASES=install postinst setup +DESCRIPTION=systemd shims and socket activation for the EAC Linux v2 service on OpenRC +EAPI=8 +HOMEPAGE=https://git.engler-labs.root64.de/fabolous005/eac-gentoo-openrc +INHERIT=python-single-r1 +IUSE=python_single_target_python3_13 python_single_target_python3_14 +KEYWORDS=~amd64 +LICENSE=MIT +RDEPEND=python_single_target_python3_13? ( dev-lang/python:3.13 ) python_single_target_python3_14? ( dev-lang/python:3.14 ) !sys-apps/systemd sys-apps/openrc sys-apps/util-linux sys-auth/elogind sys-auth/polkit sys-process/procps +REQUIRED_USE=^^ ( python_single_target_python3_13 python_single_target_python3_14 ) +SLOT=0 +_eclasses_=eapi9-pipestatus d2c134036ac31c3085aebc9147f572bd multiprocessing 45d0620f25c2f063ad6276ecd9ed9399 toolchain-funcs 58a918e3a42d0156f010dcfd43725be5 python-utils-r1 e45154171a34e8f14a1ea13f5202ce7b python-single-r1 47d8ac9be330c9366112b78fd4f8ce57 +_md5_=f0dd99a7ac6487fe4c2e607fc58e4b26 diff --git a/overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.5_p2-r3 b/overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.5_p2-r3 new file mode 100644 index 0000000..8bee26c --- /dev/null +++ b/overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.5_p2-r3 @@ -0,0 +1,14 @@ +BDEPEND=app-arch/zstd sys-apps/kmod virtual/pkgconfig +DEFINED_PHASES=install postinst postrm prepare unpack +DESCRIPTION=CachyOS-signed kernel and systemd-boot for Easy Anti-Cheat Linux v2 +EAPI=8 +HOMEPAGE=https://wiki.cachyos.org/configuration/easy_anti_cheat/ +INHERIT=toolchain-funcs +KEYWORDS=~amd64 +LICENSE=GPL-2 LGPL-2.1+ GPL-3+ GPL-1 +RDEPEND=app-crypt/efitools app-crypt/sbctl app-crypt/sbsigntools app-crypt/tpm2-tools dev-libs/openssl sys-apps/kmod[zstd] sys-boot/efibootmgr sys-kernel/dracut +RESTRICT=mirror strip +SLOT=0 +SRC_URI=https://mirror.cachyos.org/repo/x86_64/cachyos/linux-cachyos-eac-7.3.5-2-x86_64.pkg.tar.zst https://mirror.cachyos.org/repo/x86_64/cachyos/systemd-boot-cachyos-signed-262.2_1-1-x86_64.pkg.tar.zst https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-eac-signing-key-1-2-any.pkg.tar.zst https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-settings-1%3A1.4.5-1-any.pkg.tar.zst -> cachyos-settings-1.4.5-1-any.pkg.tar.zst +_eclasses_=toolchain-funcs 58a918e3a42d0156f010dcfd43725be5 +_md5_=728ecf3cc0b0513f6b471e97635bb082 diff --git a/overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.7_p2 b/overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.7_p2 new file mode 100644 index 0000000..384b233 --- /dev/null +++ b/overlay/metadata/md5-cache/sys-kernel/cachyos-eac-kernel-bin-7.3.7_p2 @@ -0,0 +1,14 @@ +BDEPEND=app-arch/zstd sys-apps/kmod virtual/pkgconfig +DEFINED_PHASES=install postinst postrm prepare unpack +DESCRIPTION=CachyOS-signed kernel and systemd-boot for Easy Anti-Cheat Linux v2 +EAPI=8 +HOMEPAGE=https://wiki.cachyos.org/configuration/easy_anti_cheat/ +INHERIT=toolchain-funcs +KEYWORDS=~amd64 +LICENSE=GPL-2 LGPL-2.1+ GPL-3+ GPL-1 +RDEPEND=app-crypt/efitools app-crypt/sbctl app-crypt/sbsigntools app-crypt/tpm2-tools dev-libs/openssl sys-apps/kmod[zstd] sys-boot/efibootmgr sys-kernel/dracut +RESTRICT=mirror strip +SLOT=0 +SRC_URI=https://mirror.cachyos.org/repo/x86_64/cachyos/linux-cachyos-eac-7.3.7-2-x86_64.pkg.tar.zst https://mirror.cachyos.org/repo/x86_64/cachyos/systemd-boot-cachyos-signed-262.2_1-1-x86_64.pkg.tar.zst https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-eac-signing-key-1-2-any.pkg.tar.zst https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-settings-1%3A1.4.7-1-any.pkg.tar.zst -> cachyos-settings-1.4.7-1-any.pkg.tar.zst +_eclasses_=toolchain-funcs 58a918e3a42d0156f010dcfd43725be5 +_md5_=96b1fab2e4c6e074c0d1496b537170e5 diff --git a/overlay/sys-apps/eac-openrc-compat/eac-openrc-compat-0.1-r2.ebuild b/overlay/sys-apps/eac-openrc-compat/eac-openrc-compat-0.1-r3.ebuild similarity index 86% rename from overlay/sys-apps/eac-openrc-compat/eac-openrc-compat-0.1-r2.ebuild rename to overlay/sys-apps/eac-openrc-compat/eac-openrc-compat-0.1-r3.ebuild index e7edbeb..b50a1d8 100644 --- a/overlay/sys-apps/eac-openrc-compat/eac-openrc-compat-0.1-r2.ebuild +++ b/overlay/sys-apps/eac-openrc-compat/eac-openrc-compat-0.1-r3.ebuild @@ -7,8 +7,8 @@ PYTHON_COMPAT=( python3_{13..14} ) inherit python-single-r1 -DESCRIPTION="systemctl, systemd-run and socket activation for the EAC Linux v2 service on OpenRC" -HOMEPAGE="https://easy.ac" +DESCRIPTION="systemd shims and socket activation for the EAC Linux v2 service on OpenRC" +HOMEPAGE="https://git.engler-labs.root64.de/fabolous005/eac-gentoo-openrc" S="${WORKDIR}" LICENSE="MIT" @@ -35,7 +35,7 @@ src_install() { python_fix_shebang "${ED}"/usr/bin/systemd-run "${ED}"${lib}/systemd-run-agent "${ED}"${lib}/socket-activate insinto /usr/share/polkit-1/actions - doins "${FILESDIR}"/org.gentoo.eac-openrc-compat.policy + doins "${FILESDIR}"/de.root64.engler-labs.eac-openrc-compat.policy newinitd "${FILESDIR}"/socket-activate.initd socket-activate dosym socket-activate /etc/init.d/socket-activate.easyanticheat_eos diff --git a/overlay/sys-apps/eac-openrc-compat/files/README.md b/overlay/sys-apps/eac-openrc-compat/files/README.md index 9d105b1..391d4be 100644 --- a/overlay/sys-apps/eac-openrc-compat/files/README.md +++ b/overlay/sys-apps/eac-openrc-compat/files/README.md @@ -32,7 +32,7 @@ Logs: `~/.cache/com.epicgames.easyanticheat/service.log` (setup), | --- | --- | | `/usr/bin/eac-run` | `eac-run COMMAND [ARGS...]`: runs a game launcher with the two pieces below, which run only as long as it does | | `/usr/libexec/eac-openrc-compat/socket-activate-ctl` | `{start\|stop} NAME` for `socket-activate.NAME`, as root through pkexec; `stop` does nothing while the service it started still runs | -| `/usr/share/polkit-1/actions/org.gentoo.eac-openrc-compat.policy` | lets the active local session run `socket-activate-ctl` without a password; anyone else needs an admin password | +| `/usr/share/polkit-1/actions/de.root64.engler-labs.eac-openrc-compat.policy` | lets the active local session run `socket-activate-ctl` without a password; anyone else needs an admin password | | `/usr/lib64/libsystemd.so.0` | link to elogind's library, which exports the same `LIBSYSTEMD_*` symbols the setup uses (`sd_listen_fds`, `sd_is_socket_unix`, `sd_notify`) | | `/usr/bin/systemd-run` | the `--user` form only, forwarded to `systemd-run-agent`; anything else fails as on a host without a user manager | | `/usr/libexec/eac-openrc-compat/systemd-run-agent` | runs those commands in the graphical session, with the session's environment, outside the caller's process tree | diff --git a/overlay/sys-apps/eac-openrc-compat/files/org.gentoo.eac-openrc-compat.policy b/overlay/sys-apps/eac-openrc-compat/files/de.root64.engler-labs.eac-openrc-compat.policy similarity index 90% rename from overlay/sys-apps/eac-openrc-compat/files/org.gentoo.eac-openrc-compat.policy rename to overlay/sys-apps/eac-openrc-compat/files/de.root64.engler-labs.eac-openrc-compat.policy index c75781c..f5de5a9 100644 --- a/overlay/sys-apps/eac-openrc-compat/files/org.gentoo.eac-openrc-compat.policy +++ b/overlay/sys-apps/eac-openrc-compat/files/de.root64.engler-labs.eac-openrc-compat.policy @@ -3,7 +3,7 @@ "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> eac-openrc-compat - + Start or stop a socket-activated service Authentication is required to start or stop a socket-activated service diff --git a/overlay/sys-apps/eac-openrc-compat/files/eac-run b/overlay/sys-apps/eac-openrc-compat/files/eac-run old mode 100755 new mode 100644 diff --git a/overlay/sys-apps/eac-openrc-compat/files/socket-activate b/overlay/sys-apps/eac-openrc-compat/files/socket-activate old mode 100755 new mode 100644 diff --git a/overlay/sys-apps/eac-openrc-compat/files/socket-activate-ctl b/overlay/sys-apps/eac-openrc-compat/files/socket-activate-ctl old mode 100755 new mode 100644 diff --git a/overlay/sys-apps/eac-openrc-compat/files/systemctl b/overlay/sys-apps/eac-openrc-compat/files/systemctl old mode 100755 new mode 100644 diff --git a/overlay/sys-apps/eac-openrc-compat/files/systemd-run b/overlay/sys-apps/eac-openrc-compat/files/systemd-run old mode 100755 new mode 100644 diff --git a/overlay/sys-apps/eac-openrc-compat/files/systemd-run-agent b/overlay/sys-apps/eac-openrc-compat/files/systemd-run-agent old mode 100755 new mode 100644 diff --git a/overlay/sys-kernel/cachyos-eac-kernel-bin/Manifest b/overlay/sys-kernel/cachyos-eac-kernel-bin/Manifest index ab624ec..3767748 100644 --- a/overlay/sys-kernel/cachyos-eac-kernel-bin/Manifest +++ b/overlay/sys-kernel/cachyos-eac-kernel-bin/Manifest @@ -1,4 +1,4 @@ DIST cachyos-eac-signing-key-1-2-any.pkg.tar.zst 25931 BLAKE2B 7a333eb9b1988b334fcf7f14a7ef089fd81ae71f09a0954290ff63e8ff443c65ee21f1f3a8355d449aa1c92cdc4d8522bc24bc58c68962e0209f0e31493078b7 SHA512 061964faa8bb41b489a77bfa3b38ab56484d4e34578ecbfe8d184f3ee84acf0de5ffb59423f06fe02a55f4fc85ab08b368e32843186432f36a19426197ee993e -DIST cachyos-settings-1.4.5-1-any.pkg.tar.zst 34054 BLAKE2B 1dd6b77c8367c2813fa8b946cba19f0ebba4f9597d629e46b3cbfffbc86cb92ea08ec0ad058a92422818e2cdbf919276e97b8edd211a5132d679e71d0653131d SHA512 d6cbfac39f3b4648e8a3bca5eda3311db8600d9118ab2a6099d3a5da11168d285963797ff1cbb6a8f9b35b2d7f3c8970502c276454c5ab40214de7894f229c0b -DIST linux-cachyos-eac-7.3.5-2-x86_64.pkg.tar.zst 160513377 BLAKE2B bc19c6888b913c0175131dd5cb67029e36ad5016b13679b7f3d3c2ffd5f40c5a1f2ebf51916595baa530e6e48c92e693966ba759fe9b4e35b7a89e367e806575 SHA512 8819db16f28301f9a1908e2a53383fa512e93f1b799485c0e9650562e9fd6be4988a9d90a9a3581a06c159990aef694d8264594927fbea071cb835f99fb6c794 +DIST cachyos-settings-1.4.7-1-any.pkg.tar.zst 34502 BLAKE2B c3b113b761493939990da4ed0cf52dd97dca60ca5e6bccd00a1aec940a4b4658e48f24e47f60ad04eeecfd7a15a406bf522e5fbf379775e6a13237a142c90fd9 SHA512 b755e49b48a2f246ba98128520fe8c7f365b2cc10d3be5481563cc8000b9d95f0ab4d2ccaac3d2ff440f9d582701a85e4d950cae430364bccdc1e3ab264476b2 +DIST linux-cachyos-eac-7.3.7-2-x86_64.pkg.tar.zst 160741211 BLAKE2B 629d34331c3bdc58492bc196483f8bafc52f5a07a1fc96cf30292005d21c074185a742cbb369a4efe7e9c4a43b6cf2cb4d7ba8b92d07497d02ee5a82b4a5d66f SHA512 1aa205b93eecc1f914f9011a9824540f5528b4ebdf31f91c38e0bc0fc156a96cb85a3bcab0d1abd11d85e2f348d6bef6141cead2d759eb76337fbcdce7fb8fd4 DIST systemd-boot-cachyos-signed-262.2_1-1-x86_64.pkg.tar.zst 103982 BLAKE2B 132ec57dd05133a24f306f33728f61cb283bf3fb26d1b0e6fad6e8b10cabb2eefdf695a9bbcdaf4ca7dcfd07193582c9fb874401e85adfb2161cfe5eed0b1dda SHA512 7d56f609e5b7d17d8560c047041a7b347a040f5632ad99e136ebd78b5098b5f9083c2c39dc13ef420c853c23f50a6aa2a54dceb9ad69c38fc99fdbce4a2b2534 diff --git a/overlay/sys-kernel/cachyos-eac-kernel-bin/cachyos-eac-kernel-bin-7.3.5_p2-r3.ebuild b/overlay/sys-kernel/cachyos-eac-kernel-bin/cachyos-eac-kernel-bin-7.3.7_p2.ebuild similarity index 87% rename from overlay/sys-kernel/cachyos-eac-kernel-bin/cachyos-eac-kernel-bin-7.3.5_p2-r3.ebuild rename to overlay/sys-kernel/cachyos-eac-kernel-bin/cachyos-eac-kernel-bin-7.3.7_p2.ebuild index 84e0c3f..90b217c 100644 --- a/overlay/sys-kernel/cachyos-eac-kernel-bin/cachyos-eac-kernel-bin-7.3.5_p2-r3.ebuild +++ b/overlay/sys-kernel/cachyos-eac-kernel-bin/cachyos-eac-kernel-bin-7.3.7_p2.ebuild @@ -9,7 +9,7 @@ MY_PV=${PV/_p/-} MY_KV=${MY_PV}-cachyos-eac SDBOOT_PV=262.2_1-1 KEY_PV=1-2 -SETTINGS_PV=1.4.5-1 +SETTINGS_PV=1.4.7-1 MIRROR=https://mirror.cachyos.org/repo/x86_64/cachyos DESCRIPTION="CachyOS-signed kernel and systemd-boot for Easy Anti-Cheat Linux v2" @@ -100,7 +100,12 @@ pkg_postinst() { } pkg_postrm() { - # depmod output is not owned by the package - [[ -n ${MODULES_DIR} && ! -d ${EROOT}${MODULES_DIR}/${MY_KV}/kernel ]] || return 0 - rm -rf "${EROOT}${MODULES_DIR}/${MY_KV}" + # Portage keeps /lib/modules/* on unmerge (UNINSTALL_IGNORE), and depmod's files are not owned. + local new=${REPLACED_BY_VERSION%-r*} + [[ -n ${new} && ${new/_p/-}-cachyos-eac == "${MY_KV}" ]] && return + if [[ -z ${ROOT} && $(uname -r) == "${MY_KV}" ]]; then + elog "Kept ${EROOT}${MODULES_DIR}/${MY_KV}: it belongs to the running kernel. Remove it after a reboot." + return + fi + rm -rf "${EROOT}${MODULES_DIR:-/lib/modules}/${MY_KV}" } diff --git a/overlay/sys-kernel/cachyos-eac-kernel-bin/files/eac-boot b/overlay/sys-kernel/cachyos-eac-kernel-bin/files/eac-boot old mode 100755 new mode 100644