Visitar URL original
seccomp: Use namespace credentials for FUSE mounts by fivetime · Pull Request #3686 · lxc/incus · GitHub
Skip to content

seccomp: Use namespace credentials for FUSE mounts - #3686

Merged
stgraber merged 1 commit into
lxc:mainfrom
fivetime:upstream-fuse-namespace-creds
Jul 23, 2026
Merged

stgraber merged 1 commit into
lxc:mainfrom
fivetime:upstream-fuse-namespace-creds

Conversation

@fivetime

Copy link
Copy Markdown
Contributor

Summary

The FUSE mount helper enters the instance user namespace before applying its final credentials. Passing host-mapped IDs at that point can select the wrong credentials for unprivileged containers.

Pass the namespace UID, GID, FSUID, and FSGID instead. The new unit test uses distinct host-mapped and namespace IDs to verify that the helper arguments use the namespace values.

Testing

  • go test ./internal/server/seccomp -run '^TestMountArgsFuseCredentials$' -count=1

@fivetime
fivetime requested a review from stgraber as a code owner July 22, 2026 11:29
Signed-off-by: Simon Zhou <jp.zdm2008@gmail.com>
@stgraber
stgraber force-pushed the upstream-fuse-namespace-creds branch from eba40ee to 8e6be87 Compare July 23, 2026 00:02
@stgraber
stgraber merged commit 5773d1a into lxc:main Jul 23, 2026
108 of 109 checks passed
@fivetime
fivetime deleted the upstream-fuse-namespace-creds branch July 23, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants