mirror of
https://github.com/containers/podman.git
synced 2025-10-25 10:16:43 +08:00
Merge pull request #23830 from dfr/freebsd-inspect
libpod: fix HostConfig.Devices output from 'podman inspect' on FreeBSD
This commit is contained in:
@ -15,5 +15,14 @@ func (c *Container) platformInspectContainerHostConfig(ctrSpec *spec.Spec, hostC
|
|||||||
// UTS namespace mode
|
// UTS namespace mode
|
||||||
hostConfig.UTSMode = c.NamespaceMode(spec.UTSNamespace, ctrSpec)
|
hostConfig.UTSMode = c.NamespaceMode(spec.UTSNamespace, ctrSpec)
|
||||||
|
|
||||||
|
// Devices
|
||||||
|
// Do not include if privileged - assumed that all devices will be
|
||||||
|
// included.
|
||||||
|
var err error
|
||||||
|
hostConfig.Devices, err = c.GetDevices(hostConfig.Privileged, *ctrSpec, map[string]string{})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user