On Sun, Nov 29, 2026 at 01:27:56AM +0000, Chris Bainbridge wrote:
- The exec side is detectable before handoff: a PT_INTERP program header means the loader will honour LD_PRELOAD (set-id and file-capability binaries being the exceptions, cf. #544471), so libfakeroot can name the binary and optionally refuse the exec, letting CI fail at the boundary instead of three build steps later. We keep that opt-in (FAKEROOT_EXEC_POLICY=fail) and it is what would have made our original failure say what actually happened.
A patch for this sounds fine.
- The serve side can compare faked's cached permission bits with the fresh real stat and warn when they disagree (a static chmod, for example). Warn-only, because a legitimate in-place modifier can change the bits; it cannot catch the same-mode reuse above, for the reason in the first paragraph.
Warn how, exactly?
Happy to send either as a patch, or as a description only -- we are not assuming you want the extra wrapped functions upstream.

