mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
seccomp: improve GoDoc for Seccomp fields
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
b316cc059a
commit
b309e96b11
1 changed files with 13 additions and 3 deletions
|
@ -19,7 +19,17 @@ type Seccomp struct {
|
||||||
// Architectures is kept to maintain backward compatibility with the old
|
// Architectures is kept to maintain backward compatibility with the old
|
||||||
// seccomp profile.
|
// seccomp profile.
|
||||||
Architectures []specs.Arch `json:"architectures,omitempty"`
|
Architectures []specs.Arch `json:"architectures,omitempty"`
|
||||||
|
|
||||||
|
// ArchMap contains a list of Architectures and Sub-architectures for the
|
||||||
|
// profile. When generating the profile, this list is expanded to a
|
||||||
|
// []specs.Arch, to propagate the Architectures field of the profile.
|
||||||
ArchMap []Architecture `json:"archMap,omitempty"`
|
ArchMap []Architecture `json:"archMap,omitempty"`
|
||||||
|
|
||||||
|
// Syscalls contains lists of syscall rules. Rules can define conditions
|
||||||
|
// for them to be included or excluded in the resulting profile (based on
|
||||||
|
// on kernel version, architecture, capabilities, etc.). These lists are
|
||||||
|
// expanded to an specs.Syscall When generating the profile, these lists
|
||||||
|
// are expanded to a []specs.LinuxSyscall.
|
||||||
Syscalls []*Syscall `json:"syscalls"`
|
Syscalls []*Syscall `json:"syscalls"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue