From 3e79296a81ad723c6c3e8ea7d9ca142dfa8fbdf3 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 9 Jul 2021 16:01:35 -0400 Subject: Support DeviceCgroupRules to actually get added. Fixes: https://github.com/containers/podman/issues/10302 Signed-off-by: Daniel J Walsh --- pkg/specgen/specgen.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/specgen/specgen.go') 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. -- cgit v1.2.3-54-g00ecf