@@ -380,13 +380,6 @@ type LinuxDeviceCgroup struct {
380380 Access string `json:"access,omitempty"`
381381}
382382
383- // LinuxSeccomp represents syscall restrictions
384- type LinuxSeccomp struct {
385- DefaultAction LinuxSeccompAction `json:"defaultAction"`
386- Architectures []Arch `json:"architectures"`
387- Syscalls []LinuxSyscall `json:"syscalls,omitempty"`
388- }
389-
390383// Solaris contains platform specific configuration for Solaris application containers.
391384type Solaris struct {
392385 // SMF FMRI which should go "online" before we start the container process.
@@ -484,6 +477,13 @@ type WindowsNetworkResources struct {
484477 EgressBandwidth * uint64 `json:"egressBandwidth,omitempty"`
485478}
486479
480+ // LinuxSeccomp represents syscall restrictions
481+ type LinuxSeccomp struct {
482+ DefaultAction LinuxSeccompAction `json:"defaultAction"`
483+ Architectures []Arch `json:"architectures,omitempty"`
484+ Syscalls []LinuxSyscall `json:"syscalls"`
485+ }
486+
487487// Arch used for additional architectures
488488type Arch string
489489
@@ -544,7 +544,8 @@ type LinuxSeccompArg struct {
544544
545545// LinuxSyscall is used to match a syscall in Seccomp
546546type LinuxSyscall struct {
547- Name string `json:"name"`
548- Action LinuxSeccompAction `json:"action"`
549- Args []LinuxSeccompArg `json:"args,omitempty"`
547+ Names []string `json:"names"`
548+ Action LinuxSeccompAction `json:"action"`
549+ Args []LinuxSeccompArg `json:"args"`
550+ Comment string `json:"comment"`
550551}
0 commit comments