RPM packages
LOTA ships as native RPMs so a host does not have to reproduce the build
toolchain. The packages are built with nfpm
from the configs under packaging/nfpm and target the RPM/dracut family
(Fedora first, then RHEL/Rocky/Alma). Debian/Ubuntu use a different initramfs
generator and are handled separately.
The packages
Package |
Contents |
License |
|---|---|---|
lota-agent |
agent, BPF LSM object, PCR14 initramfs helper, 90lota dracut module, systemd/dbus/udev integration, lota-install |
MIT AND GPL-2.0-only |
lota-verifier |
the verifier service binary |
MIT |
lota-attest-ca |
the attestation CA service binary |
MIT |
lota-sdk |
versioned SDK runtime libraries (gaming, anti-cheat, server, Proton hook) |
MIT |
lota-sdk-devel |
SDK headers, linker symlinks and Proton/Steam helpers (needs lota-sdk) |
MIT |
Only lota-agent is host-coupled (TPM, BPF, initramfs); the verifier and CA
can equally run as container images on a cluster. lota-sdk carries the
versioned shared libraries and lota-sdk-devel the headers and linker
symlinks to build against them -- together the integrator surface for building
on top of LOTA.
Building
make packages
builds every RPM under build/packages (PKG_DIR), each named from the
project version. The target depends on a full build so the configs find the
binaries and libraries they reference. It ends in make package-lint, which
runs rpmlint with packaging/nfpm/lota.rpmlintrc and fails on any error
that file does not filter; CI runs the same target. Without rpmlint
installed the lint is skipped.
Installing
Once the packages are served from a signed dnf repository:
sudo dnf install lota-agent
On RHEL-family hosts, enable EPEL before that command. The agent requires
fsverity-utils to measure the objects a title maps, and el9 serves that
package from EPEL rather than from baseos, appstream or crb:
sudo dnf install epel-release
The agent fails closed and is not started by the package. The post-install
hook runs lota-install --unattended, which does the host-local half of
bring-up: it verifies the shipped BPF object against the public key beside it,
records that key in /etc/lota/lota.conf, restores fs-verity on the binary
the package just wrote, and loads the SELinux fence. Each of those is
reversible and none of them changes how the machine boots.
What it deliberately leaves alone is the boot path -- the 90lota initramfs
module and the kernel integrity floor on the command line -- and it names the
stages it left before exiting with code 11, which a tool that runs
lota-install --unattended itself reads as "not finished". Finish with:
sudo lota-install
The hook's failure is never the transaction's failure: the package installs
either way and the run reports what is left. A host that wants the boot-path
stages unattended as well opts in before installing, by creating
/etc/lota/auto-bringup or setting LOTA_AUTO_BRINGUP=1; that is the
image-build and managed-fleet case, where whoever builds the image is the
person making that decision.
The BPF object ships signed by whoever built the package, with the public
key beside it at /usr/lib/lota/enforcement.pub; an upgrade replaces the
object, the signature and the key together. A fleet that signs enforcement
itself puts its own public key at /etc/lota/policy.pub, which the agent
prefers and which no package owns, so it survives every upgrade. The agent
refuses to load an unsigned object, and nothing signs one on the player's
machine.
Package upgrades follow the same rule and do not rewrite the boot path. An
agent upgrade still needs the initramfs and the PCR 14 commitment refreshed,
since the binary is measured; sudo lota-install after the upgrade does
that.
State the packages own, and state they leave alone
lota-agent owns /var/lib/lota and /var/lib/lota/profiles, both
0700; lota-verifier owns /var/lib/lota and its default
--aik-store at /var/lib/lota/aiks, also 0700, so rpm -V
reports a changed mode.
The files inside are not owned: the AIK authorisation value and its
sealed form, the AIK metadata, the monotonic clock state and the publisher
profiles. They are the machine's identity and survive removal and reinstall,
as do /etc/lota and the TPM's persistent objects. To hand the machine
on or re-enrol from scratch, remove them by hand.
Removing lota-agent first stops the daemon, its socket and the
attestation loop. Stopping the daemon extends PCR 14, so the host fails
attestation until it reboots.