Rust 1.58.1 released
Rust 1.58.1 released
Posted Feb 10, 2022 18:54 UTC (Thu) by nix (subscriber, #2304)In reply to: Rust 1.58.1 released by jra
Parent article: Rust 1.58.1 released
Now hostile users can create all the symlinks they want, as can non-hostile users, and the use case the non-hostile users wanted (they can follow them) still works, while the hostile users find that only they are following the hostile symlinks they created, but nobody else can.
(Anyone still broken by this is probably using gid-shared directories for something, like it was the 1980s still. They're probably using ACLs too. A variant mode, off by default or on only in directories with the setgid bit active or perhaps which are gid-writable, which applies the same check based on the gid of the symlink instead of the uid, would suffice for that. I'm sceptical there are enough such systems around to worry about, though.)
