-
Notifications
You must be signed in to change notification settings - Fork 602
Open
Description
When the config reuses an existing userns:
"namespaces": [
{
"type": "user",
"path": "/proc/1234/ns/user"
},It is unclear how mappings should be specified:
"uidMappings": [
{
"containerID": 0,
"hostID": 1000,
"size": 32000
}
],
If the existing userns already has mappings configured, the runtime will not be able to write to /proc/$$/uid_map again (see man 7 user_namespaces).
Questions for the runtimes:
- Should the runtime ignore any
uidMappingsorgidMappingssections when apathis specified for userns? - Or should it check that the current mappings are already configured exactly as specified in
config.json? - Or should it return an error when it fails to configure the mappings again?
- Should runtimes support using existing userns with unconfigured mappings? (That does not seem useful to me because how would several containers share the same userns? That seems racy.)
Questions for the users:
- Should users avoid specifying the
uidMappingsorgidMappingssections? - Or should they specify the mappings and ensure the specified
pathrefers to a userns with the same mappings?
Note that runtimes might need to know the mappings for mounting some tmpfs with options like ,uid=1000,gid=1000.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels