Skip to content

service: support id_mapping for nydusd VFS mounts - #1978

Open
Zephyrcf wants to merge 1 commit into
dragonflyoss:masterfrom
Zephyrcf:feature/idmap-remap-ids
Open

service: support id_mapping for nydusd VFS mounts#1978
Zephyrcf wants to merge 1 commit into
dragonflyoss:masterfrom
Zephyrcf:feature/idmap-remap-ids

Conversation

@Zephyrcf

@Zephyrcf Zephyrcf commented Jul 3, 2026

Copy link
Copy Markdown
Member

Overview

This PR wires per-mount UID/GID id_mapping support from the fuse-backend-rs VFS layer into nydusd. It allows each RAFS filesystem mount to independently remap UID/GID, enabling user namespace scenarios (e.g., container root uid 0 in the image → host uid 100000 at the VFS boundary).

Related Issues

Depends on cloud-hypervisor/fuse-backend-rs#227
Close #1932

Change Details

Please describe your changes in detail:

Test Results

If you have any relevant screenshots or videos that can help illustrate your changes, please add them here.

Change Type

Please select the type of change your pull request relates to:

  • Bug Fix
  • Feature Addition
  • Documentation Update
  • Code Refactoring
  • Performance Improvement
  • Other (please describe)

Self-Checklist

Before submitting a pull request, please ensure you have completed the following:

  • I have run a code style check and addressed any warnings/errors.
  • I have added appropriate comments to my code (if applicable).
  • I have updated the documentation (if applicable).
  • I have written appropriate unit tests.

Signed-off-by: zephyrcf <zinsist777@gmail.com>
@Zephyrcf
Zephyrcf force-pushed the feature/idmap-remap-ids branch from 7686f96 to 676cba8 Compare July 3, 2026 14:58

@BraveY BraveY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's wait for fuse-backend-rs to release an official version, then use the official version to replace the current temporary fork

@BraveY BraveY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot for the helpful PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support idmap so that user namespaces (userns) work efficiently

2 participants