bytecodealliance / bytecodealliance/cap-std

Add a `chroot` function?

Open
#191 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
821
Forks
57
Avg merge
1h 16m
Merged PRs (30d)
4

Description

Rust 1.56 stablizes [`std::os::unix::fs::chroot`](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.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Dir API and platform-specific filesystem support. Compare Rust 1.56's std::os::unix::fs::chroot with fchroot and the Linux /proc/self/fd/{} approach described in the issue. Done means a consistent Dir-based chroot function with appropriate platform coverage and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.