Review: enroll keeps foreign db keys, configurable paths, on-demand eac-run, launcher ebuild, db dedupe tool
This commit is contained in:
@@ -30,6 +30,9 @@ Logs: `~/.cache/com.epicgames.easyanticheat/service.log` (setup),
|
||||
|
||||
| File | Role |
|
||||
| --- | --- |
|
||||
| `/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/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 |
|
||||
@@ -64,8 +67,20 @@ Logs: `~/.cache/com.epicgames.easyanticheat/service.log` (setup),
|
||||
|
||||
## Setup
|
||||
|
||||
1. Start the agent in the graphical session, e.g. Hyprland:
|
||||
`hl.exec_cmd("/usr/libexec/eac-openrc-compat/systemd-run-agent")`.
|
||||
1. Start the launcher through `eac-run`, e.g. `eac-run EpicGamesLauncher`
|
||||
(`games-util/epic-games-launcher-bin`'s `EpicGamesLauncher` does this
|
||||
itself). From the graphical session, so the agent gets its environment and
|
||||
polkit sees the active session. `eac-run`:
|
||||
- starts `systemd-run-agent` unless one already runs for the user;
|
||||
- starts `socket-activate.easyanticheat_eos` through pkexec once EAC is
|
||||
installed (before that, the setup starts it itself);
|
||||
- when the launcher exits, stops both, unless the listener was already
|
||||
running before or is in the default runlevel. The listener stays
|
||||
while the EAC service still serves a game.
|
||||
|
||||
Nothing runs at boot or in the background between game sessions. To keep
|
||||
the listener running instead: `rc-update add socket-activate.easyanticheat_eos default`
|
||||
(or `systemctl enable easyanticheat_eos.socket`); `eac-run` leaves it alone then.
|
||||
2. Run a session-wide polkit authentication agent in that session
|
||||
(hyprpolkitagent, polkit-gnome, lxqt-policykit, ...). `pkttyagent` does not
|
||||
work: without `--process` it registers only for its parent shell, so polkit
|
||||
@@ -73,8 +88,10 @@ Logs: `~/.cache/com.epicgames.easyanticheat/service.log` (setup),
|
||||
in the setup's log). Check with
|
||||
`systemd-run --user --wait --pipe pkexec --disable-internal-agent /usr/bin/true`:
|
||||
"No authentication agent found" means none is registered for the session.
|
||||
3. Launch the game and accept the service installation. The setup enables
|
||||
`socket-activate.easyanticheat_eos` in the default runlevel itself.
|
||||
3. Launch the game and accept the service installation. The setup runs
|
||||
`systemctl start`; it never runs `enable`, since systemd would start the
|
||||
socket at boot through EAC's `sockets.target.d` drop-in, which OpenRC does
|
||||
not read.
|
||||
|
||||
Remove EAC's files again with `pkexec /usr/local/bin/easyanticheat_eos
|
||||
uninstall standalone`, then `rc-update del socket-activate.easyanticheat_eos`.
|
||||
uninstall standalone`.
|
||||
|
||||
Reference in New Issue
Block a user