You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(fspy-shared): make the payload a borrowed view
The payload is now a view over one buffer somebody owns, the model the
Windows preload already had with its static Detours page:
- ChannelConf borrows its two paths; channel() returns only the
Receiver, and Receiver::conf() derives the configuration from
receiver-owned C strings (the lock path now stored beside the keeper
path, and generated absolute like the shm path already was).
- The unix Payload borrows every path it carries: preload_path and the
macOS artifacts join the conf as views. DecodedPayload owns the
decoded bytes plus the env string, and both the client and the
supervisor derive transient Payload views instead of retaining owned
copies — the supervisor lends its session paths, the client re-reads
views from its buffer per exec. seccomp_payload stays owned until
fspy_seccomp_unotify grows borrowed types.
- The Windows preload deserializes its payload zero-copy from the
static page and forwards those original bytes to children instead of
re-serializing per spawn.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments