Commit 092baee
Set OverrideUID on virtiofs mounts for macOS ownership
On macOS, libkrun's virtiofs FUSE server reports host-side file
ownership to the guest. Without user.containers.override_stat
xattrs, workspace files appear as the host UID (e.g. 501) and
the sandbox user (1000) cannot write to nested directories or
files.
Set OverrideUID/OverrideGID on both the workspace mount and extra
mounts (git objects). go-microvm walks the host path and sets the
xattr on all entries before VM boot, making them appear as owned
by the sandbox user inside the guest.
Requires go-microvm with SetOverrideStatTree support (unreleased).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 72ff042 commit 092baee
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| |||
0 commit comments