Uh oh!
There was an error while loading. Please reload this page.
remove usage of absolute rpaths - #12754
Conversation
thestinger
commented
Mar 7, 2014
This is the uncontroversial part of the change. I haven't removed the fallback or relative rpaths. |
brson
commented
Mar 7, 2014
To be clear, this doesn't remove all absolute rpaths, but only the absolute rpath to the target crate. This leaves the fallback absolute rpath to sysroot - removing that would cause all crates that are moved on disk to break. |
This is a significant security issue as it adds a hidden library path based on the location of the build directory. It is *always* wrong in an installed package, and can be leveraged by an unprivileged user to inject libraries into a binary called by another user or even root. Closes#11746 This is a step towards fixing #11747 but is only a partial solution.
brson
commented
Mar 8, 2014
The error is possibly with multi-host cross-compiles. I think there's an option in the makefile to set LD_LIBRARY_PATH when --disable-rpath; that may just need to be always on now. |
brson
commented
Mar 8, 2014
alexcrichton
commented
Mar 9, 2014
This may be able to get by with removing this logic: https://github.com/mozilla/rust/blob/master/mk/main.mk#L345-L355 (removing the condition on |
alexcrichton
commented
Mar 18, 2014
Closing due to inactivity. |
Concerns have been raised about using absolute rpaths in rust-lang#11746, and this is the first step towards not relying on rpaths at all. The only current use case for an absolute rpath is when a non-installed rust builds an executable that then moves from is built location. The relative rpath back to libstd and absolute rpath to the installation directory still remain (CFG_PREFIX). Closesrust-lang#11746 Rebasing of rust-lang#12754
Concerns have been raised about using absolute rpaths in rust-lang#11746, and this is the first step towards not relying on rpaths at all. The only current use case for an absolute rpath is when a non-installed rust builds an executable that then moves from is built location. The relative rpath back to libstd and absolute rpath to the installation directory still remain (CFG_PREFIX). Closesrust-lang#11746 Rebasing of rust-lang#12754
fix: Fix VSCode status bar tooltip not showing the error messages
This is a significant security issue as it adds a hidden library path
based on the location of the build directory. It is always wrong in an
installed package, and can be leveraged by an unprivileged user to
inject libraries into a binary called by another user or even root.
Closes#11746
This is a step towards fixing #11747 but is only a partial solution.