libcontainer: rm init() from capabilities_linux.go#2646
Conversation
Instead, use sync.Once to init the map when needed. This should give a small speedup to operations which do not require filling in the capabilities. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
|
+1 to this new pattern for initialization. |
|
To be honest, I don't like this because You could argue that in principle operations other than |
|
Scratch that, this is part of runc init. |
Instead, use sync.Once to init the map when needed.
This should give a small speedup to operations which do not require
filling in the capabilities.