Skip to content

Commit a1ef4eb

Browse files
committed
Make vTPM work with user namespaces
The setup call for Usernamespaces must come before creating the VTPM devices, otherwise we get odd error messages that the uid mappings are not available. Signed-off-by: Stefan Berger <[email protected]>
1 parent 78750b7 commit a1ef4eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcontainer/specconv/spec_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ func CreateLibcontainerConfig(opts *CreateOpts) (*configs.Config, error) {
191191
if err := createDevices(spec, config); err != nil {
192192
return nil, err
193193
}
194-
if err := createVTPMs(spec, config); err != nil {
194+
if err := setupUserNamespace(spec, config); err != nil {
195195
return nil, err
196196
}
197-
if err := setupUserNamespace(spec, config); err != nil {
197+
if err := createVTPMs(spec, config); err != nil {
198198
return nil, err
199199
}
200200
c, err := createCgroupConfig(opts)

0 commit comments

Comments
 (0)