Clarify that auth.NewRootUserNamespace creates a distinct ns on each call.

PiperOrigin-RevId: 479392054
This commit is contained in:
Rahat Mahmood
2022-10-06 13:04:51 -07:00
committed by gVisor bot
parent 718e3b5812
commit c174470a2d
+4 -1
View File
@@ -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
// """