Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for feature(unix_chroot) #84715

Closed
3 tasks done
joshtriplett opened this issue Apr 29, 2021 · 1 comment
Closed
3 tasks done

Tracking Issue for feature(unix_chroot) #84715

joshtriplett opened this issue Apr 29, 2021 · 1 comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC O-unix Operating system: Unix-like T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@joshtriplett
Copy link
Member

joshtriplett commented Apr 29, 2021

Feature gate: #![feature(unix_chroot)]

This is a tracking issue for the unix_chroot feature, which adds std::os::unix::fs::chroot to change the root directory of the current process.

Public API

// std::os::unix::fs
pub fn chroot<P: AsRef<Path>>(dir: P) -> io::Result<()>

Steps / History

@joshtriplett joshtriplett added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC labels Apr 29, 2021
@jonas-schievink jonas-schievink added the O-unix Operating system: Unix-like label Apr 29, 2021
m-ou-se added a commit to m-ou-se/rust that referenced this issue Sep 2, 2021
…ou-se

Stabilize std::os::unix::fs::chroot

I've verified that this works as documented, and I've tested it in (a nightly
build of) production software as a replacement for an unsafe call to
`libc::chroot`. It's been available in nightly for a few releases. I think it's
ready to stabilize.

---

Tracking issue: rust-lang#84715
@jplatte
Copy link
Contributor

jplatte commented Sep 3, 2021

Boxes can be ticked and tracking issue closed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC O-unix Operating system: Unix-like T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants