Skip to content

Add a chroot function? #191

@sunfishcode

Description

@sunfishcode

Rust 1.56 stablizes std::os::unix::fs::chroot. Should cap-std add a chroot function that can be called on a Dir?

It'd be implemented in terms of fchroot on platforms that have that, or chroot on /proc/self/fd/{} on Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions