cloud-hypervisor / fuse-backend-rs

Rust crate for implementing FUSE backends
Apache License 2.0
129 stars 63 forks source link

UID/GID remapping support #159

Closed h56983577 closed 8 months ago

h56983577 commented 9 months ago

Once ID mapping is configured, the VFS layer remaps:

  1. the external IDs in context to internal IDs
  2. the external IDs in attribute to internal IDs (in setattr())
  3. the internal IDs in entry back to external IDs
  4. the internal IDs in attribute back to external IDs (in getattr() and setattr())

id remap In a container, as well as within the backend filesystem, there are independent ID ranges, and remapping only occurs when passing through the VFS.

bergwolf commented 8 months ago

CI is still failing. Please run make check and make smoke-all locally to make sure CI passes.

h56983577 commented 8 months ago

CI is still failing. Please run make check and make smoke-all locally to make sure CI passes.

@bergwolf I'm sorry, I should have checked if CI passed locally.

h56983577 commented 8 months ago

lgtm, thanks!

@bergwolf Thank you for your diligent guidance! My first merged PR in an open-source project :smile:.