bytecodealliance / bytecodealliance/cap-std

Add a `chroot` function?

未关闭
#191 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
821
派生
57
平均合并
1 小时 16 分钟
30 天内合并 PR
4

描述

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.

贡献指南

打开贡献指南

调研方向

首先检查现有的 Dir API 和特定于平台的文件系统支持。将 Rust 1.56 的 std::os::unix::fs::chroot 与 fchroot,以及 issue 中描述的 Linux /proc/self/fd/{} 方法进行比较。当实现了一个一致的、基于 Dir 的 chroot 函数,并具备适当的平台覆盖和测试时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
operating-systems, security
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。