Skip to content

v0.8.0 - Hardening - #16

Merged
jamesgober merged 9 commits into
mainfrom
feature/0.8.0-hardening
Dec 3, 2026
Merged

jamesgober merged 9 commits into
mainfrom
feature/0.8.0-hardening

Conversation

@jamesgober

Copy link
Copy Markdown
Owner

Hardening for 0.8.0.

  • The process guard on Windows creates a missing lock directory for this account, SYSTEM, and Administrators alone, and refuses a lock directory other accounts can change, as Unix refuses a group- or world-writable one.
  • AlreadyRunning names a pid only when that process is running and started before its pid file was written.
  • mem::total(), host_total(), and limit() read only what they return.
  • Error codes are read straight after the call that failed; calls that set none report Malformed.
  • Windows disk busy time keeps counting through a clock step; FreeBSD disk totals retry when a disk comes or goes.
  • Every threat in the model has a named attack test; docs/SECURITY.md lists each defence with its cost and test.
  • CI: an AddressSanitizer job on Linux and macOS, the 24-hour fuzz rounds and a soak run (fuzz.yml with long).

Not merged until the long runs finish.

James Gober added 9 commits November 29, 2026 14:05
The guard creates and checks a private lock directory on Windows, and
names a pid only when that process can be the other copy. Memory
readings read only what they return. Error codes are taken straight
after the failing call. Windows disk busy time survives clock steps.

Every threat has a named attack test, docs/SECURITY.md lists the
defences and their costs, and CI gains an AddressSanitizer job, the
24-hour fuzz rounds, and a soak run.
@jamesgober
jamesgober merged commit ef77e59 into main Dec 3, 2026
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant