mirror of
https://github.com/uutils/shadow.git
synced 2026-06-10 16:14:57 -07:00
9763b7e177
Since Rust 1.92, panic=abort no longer prevents unwind table emission on Linux. For setuid-root binaries, unwind tables leak internal binary layout information (function boundaries, call graph structure). Add -C force-unwind-tables=no via .cargo/config.toml. This is the only stable mechanism in Cargo 1.95 (profile-rustflags is still unstable). Applied to all profiles — harmless in dev builds where debug info already exposes far more than unwind tables. Verified with readelf: passwd release binary has zero .eh_frame or .eh_frame_hdr sections after this change. Fixes #143. Raised by @oech3.