Skip to content

Commit d3c2533

Browse files
authored
Merge pull request #1110 from AkihiroSuda/9p-symlink
9p: change the default `securityModel` from `mapped-xattr` to `none`
2 parents b08f635 + 9884bd8 commit d3c2533

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/mount.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ mounts:
5959
- location: "~"
6060
9p:
6161
# Supported security models are "passthrough", "mapped-xattr", "mapped-file" and "none".
62-
# 🟢 Builtin default: "mapped-xattr"
62+
# "mapped-xattr" and "mapped-file" are useful for persistent chown but incompatible with symlinks.
63+
# 🟢 Builtin default: "none" (since Lima v0.13)
6364
securityModel: null
6465
# Select 9P protocol version. Valid options are: "9p2000" (legacy), "9p2000.u", "9p2000.L".
6566
# 🟢 Builtin default: "9p2000.L"

examples/default.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ mounts:
6969
sftpDriver: null
7070
9p:
7171
# Supported security models are "passthrough", "mapped-xattr", "mapped-file" and "none".
72-
# 🟢 Builtin default: "mapped-xattr"
72+
# "mapped-xattr" and "mapped-file" are useful for persistent chown but incompatible with symlinks.
73+
# 🟢 Builtin default: "none" (since Lima v0.13)
7374
securityModel: null
7475
# Select 9P protocol version. Valid options are: "9p2000" (legacy), "9p2000.u", "9p2000.L".
7576
# 🟢 Builtin default: "9p2000.L"

pkg/limayaml/defaults.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ import (
2020
)
2121

2222
const (
23-
Default9pSecurityModel string = "mapped-xattr"
23+
// Default9pSecurityModel is "none" for supporting symlinks
24+
// https://gitlab.com/qemu-project/qemu/-/issues/173
25+
Default9pSecurityModel string = "none"
2426
Default9pProtocolVersion string = "9p2000.L"
2527
Default9pMsize string = "128KiB"
2628
Default9pCacheForRO string = "fscache"

0 commit comments

Comments
 (0)