Ability to construct virtual `Dir`s to mount files and subdirectories into
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- operating-systems, security
Hướng nghiên cứu
Bắt đầu bằng cách đọc các API xây dựng Dir hiện có và các phương thức insert của Pool, sau đó so sánh cách các đường dẫn được mở và biểu diễn. Xác định liệu các tệp ảo và thư mục con có thể được mount mà không cần mở chúng hay không, đồng thời vẫn duy trì các hạn chế về khả năng đệ quy. Done phải bao gồm một thiết kế đa nền tảng đã được thống nhất, bao gồm trường hợp sử dụng được đề xuất cho thư mục gốc của ổ đĩa Windows, cùng với hành vi và các bài kiểm thử được lập tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Specifically with the option for those files/dirs to just be paths that don’t need to be opened when mounted. Note: When I say “mount” here this would only be internal to the Dir struct and not actual mounts on the underling filesystem. Similar to Pool’s insert methods.
Would particularly be interesting to create a root Dir which would just be / on Unix but on Windows a folder exposing all drive letters as subfolders. I understand that this specific use case may be controversial, as it seems to go against the spirit of this crate. But I believe the opposite to be true: The great thing about this API is that it doesn’t just have one or two layers (as more basic security systems), but arbitrarily many as each Dir recursively can be used to create narrower views. So I don’t think one global directory as the base to craft more specialised capabilities would inherently be a bad idea.
Based originally on thinking in https://github.com/bytecodealliance/wasmtime/issues/8552 to solve the problem of Windows (unlike Unix) not having a single root folder but essentially one for each volume, which makes cap-std difficult to use in some contexts.
I apologise should what I propose already be possible, in a quick look into the docs I haven’t figured out a way to do this.
- Ngôn ngữ chính
- Rust
- Star
- 821
- Fork
- 59
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/cap-std
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
bytecodealliance/cap-std#427 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
bytecodealliance/cap-std#416 · 2 bình luận ·
-
Archiving cap-std Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
bytecodealliance/cap-std#426 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
bytecodealliance/cap-std#423 · 5 bình luận ·
-
Replace cap-async-std Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
bytecodealliance/cap-std#408 · 4 bình luận · 2 reaction ·
Tất cả issue của bytecodealliance/cap-std
Issue tương tự
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Đang mởbug CLI custom-model
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
Missing examples for `Allocator` Đang mởA-allocators A-docs C-enhancement T-libs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100