Skip to content

Commit 15ae200

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 7aceacd commit 15ae200

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
@@ -198,10 +198,10 @@ func CreateLibcontainerConfig(opts *CreateOpts) (*configs.Config, error) {
198198
if err := createDevices(spec, config); err != nil {
199199
return nil, err
200200
}
201-
if err := createVTPMs(spec, config); err != nil {
201+
if err := setupUserNamespace(spec, config); err != nil {
202202
return nil, err
203203
}
204-
if err := setupUserNamespace(spec, config); err != nil {
204+
if err := createVTPMs(spec, config); err != nil {
205205
return nil, err
206206
}
207207
c, err := createCgroupConfig(opts)

0 commit comments

Comments
 (0)