hex/nix
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax Raad ccc4259416 driver install: re-check the signature as root and refuse symlinked copies
Addresses the second review of #2767.

The user-side codesign check ran before the admin prompt, so a bundle
swapped while the prompt was up was copied anyway. The requirement now
travels to osascript as its own argv item (empty for local builds) and
the root shell checks the staged copy with codesign --verify before it
replaces the driver or restarts coreaudiod. The copy refuses a symlinked
or non-directory source, drops ACLs and quarantine flags, and leaves the
staging copy root:wheel with no group or other write.

Candidate inspection uses symlink_metadata: a symlink (dangling included)
or a non-directory fails the install instead of reading as missing, and
only a real Hex.app's Contents folder counts as the running bundle. The
user home comes from app_paths.

is_local_build no longer treats a hand-stamped 0.0.0-dev-<N> build (what
scripts/release-app.sh makes, signed and notarized) as local; only
build.rs's -dev-local marker is local. is_dev_build is unchanged.

nix/package.nix's fileset now carries the two app/*-requirement.txt files
the Linux build and tests include, and the codesign helper compiles on
macOS only.
2026-11-24 16:46:27 -05:00
..
checks.nix nix: add annotate runtime deps (pipewire, libva, ffmpeg) (#977) 2026-11-02 06:10:04 -05:00
hm-module.nix nix: build for aarch64-linux (#1057) 2026-11-02 14:11:35 -05:00
module.nix nix: build for aarch64-linux (#1057) 2026-11-02 14:11:35 -05:00
package.nix driver install: re-check the signature as root and refuse symlinked copies 2026-11-24 16:46:27 -05:00
wait-for-session.sh Rename voice-control to hex everywhere, without migrations (#293) 2026-10-28 13:08:44 -04:00