lima-vm / lima-vm/lima

virtiofs: file ownerships dynamically changes depending on the caller's UID

Open
#1,513 0 comments 0 reactions 0 assignees View on GitHub
component/vz documentation expert kind/external
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

```console
suda@lima-vz:~$ whoami
suda

suda@lima-vz:~$ ls -ld /Users/suda/
drwxr-xr-x 106 suda suda 3392 Apr 27 05:04 /Users/suda/

suda@lima-vz:~$ sudo ls -ld /Users/suda/
drwxr-xr-x 106 root root 3392 Apr 27 05:04 /Users/suda/

suda@lima-vz:~$ sudo -u foo ls -ld /Users/suda/
drwxr-xr-x 106 foo foo 3392 Apr 27 05:04 /Users/suda/
```

Lima v0.15.1, macOS 13.3.1 (Intel)

Probably Apple intentionally designed this behavior, but I can't find a documentation for this.

Similar issue in Docker for Mac:
- https://github.com/docker/for-mac/issues/6243

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or entry points are named. Reproduce the listed ownership checks with virtiofs, then inspect Lima's virtiofs integration and documentation; done means explaining the UID-dependent ownership behavior or defining a scoped fix with regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.