Skip to content

targetwarden v0.1.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:40
· 7 commits to main since this release
6535172

Changed

  • Stream lsof output directly into a cross-PID interned byte-arena PathPool
    and compact BuildUnit/ProfileDir storage, eliminating per-FD PathBuf
    churn and raw V1 deps/ filename retention (4.1–4.9× lower peak memory on
    multi-target scans and reclaims).
  • Switch profile discovery, .fingerprint/*.json reads, post-lock
    revalidation, and safe tree removal to FD-anchored rustix syscalls with
    reusable scratch buffers and deterministic single-threaded target scanning to
    eliminate APFS metadata lock contention (20–55% lower system CPU and cycles).
  • Release ScanSnapshot and safety verdicts before executing reclaim plans,
    tail-seek actions.jsonl from EOF when reading recent history, and stream
    text reports without constructing JSON intermediate structs.
  • Set MallocSpaceEfficient=1 in the rendered macOS LaunchAgent plist,
    reducing sleeping watch daemon physical memory footprint from ~10.7 MB to
    ~1.0 MB.

Fixed

  • Disable primary-device d_ino hardlink statat skipping when /sbin/mount
    is unavailable (fail-closed) and align symlink accounting between Inventory
    and Full scan modes.
  • Open fingerprint JSON and companion files with O_NONBLOCK and handle
    PathPool bounds fail-closed without panicking.

Install or upgrade

curl -fsSL https://github.com/Dankosik/targetwarden/releases/download/v0.1.1/install.sh | TARGETWARDEN_VERSION=v0.1.1 sh

Archives are for macOS on Apple Silicon (aarch64-apple-darwin) and Intel (x86_64-apple-darwin); SHA256SUMS lists their checksums. Each archive has a build provenance attestation: gh attestation verify <archive> --repo Dankosik/targetwarden.