diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-21 11:28:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-21 11:28:44 +0200 |
| commit | 7b4f7a376b5a11fd3a77cd476879de30fea214a4 (patch) | |
| tree | bf7e462a6468df3cc419b6d8ddcc6cdd739a519e /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | bbd3a5ada41e0d4678de15d10404a4733dba4087 (diff) | |
| parent | 348c1b0d886960a57a866e537458dae6bf75ec23 (diff) | |
| download | rust-7b4f7a376b5a11fd3a77cd476879de30fea214a4.tar.gz rust-7b4f7a376b5a11fd3a77cd476879de30fea214a4.zip | |
Rollup merge of #137759 - joshtriplett:command-chroot, r=Amanieu
Add `std::os::unix::process::CommandExt::chroot` to safely chroot a child process This adds a `chroot` method to the `CommandExt` extension trait for the `Command` builder, to set a directory to chroot into. This will chroot the child process into that directory right before calling chdir for the `Command`'s working directory. To avoid allowing a process to have a working directory outside of the chroot, if the `Command` does not yet have a working directory set, `chroot` will set its working directory to "/". --- ACP: https://github.com/rust-lang/libs-team/issues/551 This PR currently has the tracking issue set to "none"; if the ACP is approved, I'll file a tracking issue and update the PR.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
