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

Add std::os::unix::fs::chroot to change the root directory of the current process #84716

Merged
merged 1 commit into from
Apr 30, 2021

Commits on Apr 30, 2021

  1. Add std::os::unix::fs::chroot to change the root directory of the cur…

    …rent process
    
    This is a straightforward wrapper that uses the existing helpers for C
    string handling and errno handling.
    
    Having this available is convenient for UNIX utility programs written in
    Rust, and avoids having to call the unsafe `libc::chroot` directly and
    handle errors manually, in a program that may otherwise be entirely safe
    code.
    joshtriplett committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    ffb874a View commit details
    Browse the repository at this point in the history