Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/fsmount/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ func Mount(ctx context.Context, mountpoint, remoteRoot string, client bridgev1.B
// user; AllowOther + default permissions let all users in the
// container read the mount.
DisableXAttrs: true,
// Call mount(2) directly when running as root, falling back to
// fusermount otherwise. Ubuntu 25.04+ hosts (including GitHub's
// ubuntu-latest runners) ship an AppArmor profile that attaches to
// the fusermount3 binary by path, even inside a container started
// with apparmor=unconfined, and it denies these mounts with
// "fusermount3: mount failed: Permission denied". The interceptor
// runs as root with CAP_SYS_ADMIN, so it doesn't need the setuid
// helper. See https://github.com/moby/moby/issues/50013.
DirectMount: os.Geteuid() == 0,
},
}

Expand Down
Loading