mount2: add --allow-idmap to advertise FUSE_ALLOW_IDMAP
Lets the kernel id-map a mount2 mount into a user namespace (e.g. Kubernetes pods with hostUsers: false). Off by default; requires Linux 6.12+ and implies default_permissions.
This commit is contained in:
committed by
Nick Craig-Wood
parent
be3bfe2d19
commit
675806067a
@@ -93,6 +93,11 @@ var OptionsInfo = fs.Options{{
|
||||
Default: false,
|
||||
Help: "Allow access to other users (not supported on Windows)",
|
||||
Groups: "Mount",
|
||||
}, {
|
||||
Name: "allow_idmap",
|
||||
Default: false,
|
||||
Help: "Allow id-mapped mounts (Linux 6.12+, mount2 only)",
|
||||
Groups: "Mount",
|
||||
}, {
|
||||
Name: "async_read",
|
||||
Default: true,
|
||||
@@ -172,6 +177,7 @@ type Options struct {
|
||||
AllowNonEmpty bool `config:"allow_non_empty"`
|
||||
AllowRoot bool `config:"allow_root"`
|
||||
AllowOther bool `config:"allow_other"`
|
||||
AllowIDMap bool `config:"allow_idmap"`
|
||||
DefaultPermissions bool `config:"default_permissions"`
|
||||
WritebackCache bool `config:"write_back_cache"`
|
||||
Daemon bool `config:"daemon"`
|
||||
|
||||
Reference in New Issue
Block a user