diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-24 06:09:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 06:09:17 -0400 |
commit | ec5c7c1f6a1898dacddb6cc35802525c288b61ef (patch) | |
tree | fefa2e301353ee5b1055dc1899aa7b3ce33d6e68 /pkg/specgen/specgen.go | |
parent | d956500743829297b43a22e447017fe6319caed5 (diff) | |
parent | 3e79296a81ad723c6c3e8ea7d9ca142dfa8fbdf3 (diff) | |
download | podman-ec5c7c1f6a1898dacddb6cc35802525c288b61ef.tar.gz podman-ec5c7c1f6a1898dacddb6cc35802525c288b61ef.tar.bz2 podman-ec5c7c1f6a1898dacddb6cc35802525c288b61ef.zip |
Merge pull request #10895 from rhatdan/devices
Support DeviceCgroupRules to actually get added.
Diffstat (limited to 'pkg/specgen/specgen.go')
-rw-r--r-- | pkg/specgen/specgen.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgen/specgen.go b/pkg/specgen/specgen.go index c5cc726d7..7eec48a55 100644 --- a/pkg/specgen/specgen.go +++ b/pkg/specgen/specgen.go @@ -239,6 +239,9 @@ type ContainerStorageConfig struct { // Devices are devices that will be added to the container. // Optional. Devices []spec.LinuxDevice `json:"devices,omitempty"` + // DeviceCGroupRule are device cgroup rules that allow containers + // to use additional types of devices. + DeviceCGroupRule []spec.LinuxDeviceCgroup `json:"device_cgroup_rule,omitempty"` // IpcNS is the container's IPC namespace. // Default is private. // Conflicts with ShmSize if not set to private. |