Repository navigation
Releases
Releases · KhaledSaeed18/osreflog
osreflog 0.3.0
What the snapshots cost, Flatpak and services counted right, and the workers confined.
Space and retention
osreflog statussays how much space the kept snapshots hold that/no longer has, as a
range (held for sure, held at most), measured from the diffs osreflog computes anyway; the
app's status tooltip shows it too.osreflog doctorwarns when the snapshots surely hold more
than the free space. Diffs from earlier versions didn't measure it, so the range counts from
the first checkpoint after the upgrade until those snapshots are pruned.osreflog diff A..B
says what the older side holds alone.- Retention can be set in
/etc/osreflog/retention.conf(hours to keep everything, days of
dailies, weeks of weeklies). The file ships with the defaults, commented out.
Recording
- The live witness starts before the boot checkpoint, which takes several seconds at boot:
changes made meanwhile get causes instead of falling into a gap. - Writes in Flatpak's system installation (
/var/lib/flatpak) are oneflatpakcause that
counts its paths without listing them, as the README always said, and are noise in diffs. An
appstream refresh had been recorded path by path as an "unknown" cause: 41,000 rows, 96% of
everything recorded on the test laptop in five days. - Services in a slice of their own (every templated unit such as
getty@tty1.service, and
some plain ones such as CUPS insystem-cups.slice) areunitcauses named after the unit;
they were "unknown" causes named after the executable. - DHCP lease renewals (
/var/lib/NetworkManager/internal-*) and abrt's journal cursor are
noise: state rewritten on a schedule, like rsyslog's cursor.
Hardening and dependencies
osreflog-selinuxhas domains for osreflogd's two workers: the summarizer (which parses
untrusted content) may only talk to the daemon over its pipes; the undo worker may write the
files it puts back and the attic, but has no network or exec. osreflogd asks for them when it
starts a worker, and runs it as itself when the module isn't installed. Both enforce.- D-Bus is on zbus 6 (daemon, CLI, app and user agent); zbus 5's separate zvariant, zbus_names
and zvariant_derive crates, now unmaintained, are gone from the build.
Install on Fedora 44 from COPR: sudo dnf copr enable khaledsaeed18/osreflog && sudo dnf install osreflog osreflog-app (then see the README).
osreflog 0.2.0
The app grows up, and the project gets its release machinery.
App
- The row of what's open (a cause, its undo, a checkpoint's diff, the bisect) is marked in the
sidebar. - Search the causes by label, kind, process, command or
#id(Ctrl+F; Escape clears it). - Pages open with a header: an icon, a title kept to two lines, one line of facts, and what can
be done (Undo… is in a cause's header). Commands are in monospace. - Line diffs are colored: removed lines red, added lines green. A probe's verdict icon is green
or red. - Animated loading, shown only when an answer takes more than 200 ms; pages fade in and start at
the top; a running bisect's page refreshes in place. - Toasts when a verdict is sent, a probe armed again, a verdict taken back, an undo done, and
when the daemon answers again after it was down. F5 or Ctrl+R refreshes now. - Long commands no longer wrap to three lines in the lists; the full text is in the tooltip.
- Needs libadwaita 1.6 or newer.
Hardening
osreflogdand the boot doctor refuse the system call groups they never use (clock setting,
ptrace and perf events, kernel modules, raw I/O, reboot, swap, obsolete calls). systemd's
exposure score: 3.6 → 2.4 and 4.2 → 2.2.- The settings agent (
osreflog-user) is sandboxed: read-only system and home except its own
ledger, no network, no capabilities, a system call allow-list. Exposure 8.0 → 1.0. - A new package,
osreflog-selinux: the ledger, blobs and attic in/var/lib/osreflog, and the
runtime directories, under SELinux types of their own, so confined services can't read the
history. Installed withosreflogwherever SELinux is in use. MALLOC_ARENA_MAX=2for the daemon, which held 108 MB after a day with several large diffs:
glibc keeps a malloc arena per thread and rarely returns what's freed in it. The hardening
check measures the difference.
Project
- The README is the project's front page: git's tools mapped to osreflog's, a tour with real
output, screenshots in light and dark, what keeps it safe, and the measured numbers. - CI on every push, on Fedora 44: build, clippy with warnings as errors, the tests, a 30-second
run of every fuzz target, the units' systemd exposure (it may only get better), the D-Bus and
polkit policies, the desktop entry and metainfo, the spec against the workspace, and
cargo deny; the SELinux module compiles. - Releases are built by CI from the tag: the source tarball, the SRPM and the RPMs, attached to
the GitHub release. scripts/screenshots.shcaptures the README's screenshots from real history, off-screen.- The AppStream metainfo lists the screenshots.
Install on Fedora 44 from COPR: sudo dnf copr enable khaledsaeed18/osreflog && sudo dnf install osreflog osreflog-app (then see the README).
osreflog 0.1.0
The first release, in COPR
for Fedora 44.
osreflogdrecords every change to the system with its cause: a dnf transaction, a systemd
unit, a terminal command, an app, a daemon acting for the D-Bus caller who asked it. btrfs
checkpoints around every dnf transaction and at boot; a hash-chained ledger.- The CLI:
log,diff,causes,show,why,checkpoint,undo(a dry run unless
--apply),user(your own dconf/GSettings changes),bisectin containers, VMs and reboots
of this machine,verify,doctor. - The GNOME app: the timeline of causes, what changed since any checkpoint, undo with a preview,
and the bisect wizard. - Two packages,
osreflogandosreflog-app; the services follow Fedora's presets and are
enabled by hand.
Install on Fedora 44 from COPR: sudo dnf copr enable khaledsaeed18/osreflog && sudo dnf install osreflog osreflog-app (then see the README).