Files
eac-gentoo-openrc/tools

Debugging tools

Used to find out what EAC's setup asks of systemd. Nothing here is installed by the packages; run them from this directory.

File Does
exec-snoop [seconds] as root: prints every execve/execveat attempt with path and argv[0..5], failed ones included (tracefs event probes; works under lockdown=integrity)
exec-trace [seconds] as root: JSON lines for every exec on the system (pid, parent, uid, command) and the exit status of each exec'd process (kernel proc connector)
eac-catch [seconds] [prefix] [dir] as the game's user: hardlinks every file created below /tmp/EasyAntiCheat_EOS_Setup.* into /tmp/.eac-catch/ before EAC deletes it
efi-sig-list.py FILE... lists the certificates in efivarfs dumps or .esl files (sha256 prefix, subject, issuer) and counts duplicates
systemctl-trace logs argv, uid and parent to $SYSTEMD_TRACE_DIR/systemd-trace.<uid>.log (default /tmp) and exits with $SYSTEMD_TRACE_RC (default 0)
systemd1-trace [--session] owns org.freedesktop.systemd1 on the system (or session) bus, prints every method call as a JSON line with the caller, replies NotSupported
systemd1-trace.conf D-Bus policy that lets root own org.freedesktop.systemd1 on the system bus

Capturing a first launch

With sys-apps/eac-openrc-compat installed, its systemctl and systemd-run-agent already log every call to syslog. For a new EAC setup version, run as root and as the user, then launch the game:

doas ./exec-snoop 1800 > /tmp/eac-snoop.log &
./eac-catch 1800 &

Afterwards: grep -v pactl /tmp/eac-snoop.log, the setup's ~/.cache/com.epicgames.easyanticheat/service.log, and strings /tmp/.eac-catch/*/EasyAntiCheat_EOS_Setup for its commands, unit files and --help text.

Without the compatibility layer

systemctl-trace and systemd1-trace were for the first captures, before the layer existed. Link systemctl-trace as /usr/bin/systemctl only when eac-openrc-compat is not installed (it owns that path):

doas install -m644 systemd1-trace.conf /etc/dbus-1/system.d/
doas ln -s "$PWD/systemctl-trace" /usr/bin/systemctl
doas ./systemd1-trace > /tmp/systemd1-system.jsonl

Remove both files afterwards. Never create /run/systemd/system for longer than a capture: other programs then assume systemd runs.