mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Clarify that auth.NewRootUserNamespace creates a distinct ns on each call.
PiperOrigin-RevId: 479392054
This commit is contained in:
committed by
gVisor bot
parent
718e3b5812
commit
c174470a2d
@@ -52,7 +52,10 @@ type UserNamespace struct {
|
||||
}
|
||||
|
||||
// NewRootUserNamespace returns a UserNamespace that is appropriate for a
|
||||
// system's root user namespace.
|
||||
// system's root user namespace. Note that namespaces returned by separate calls
|
||||
// to this function are *distinct* namespaces. Once a root namespace is created
|
||||
// by this function, the returned value must be reused to refer to the same
|
||||
// namespace.
|
||||
func NewRootUserNamespace() *UserNamespace {
|
||||
var ns UserNamespace
|
||||
// """
|
||||
|
||||
Reference in New Issue
Block a user