mirror of
https://github.com/containers/podman.git
synced 2025-11-13 17:47:13 +08:00
Vendor in containers/common@main
Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/seccomp/seccomp_linux.go
generated
vendored
8
vendor/github.com/containers/common/pkg/seccomp/seccomp_linux.go
generated
vendored
@@ -1,3 +1,4 @@
|
||||
//go:build seccomp
|
||||
// +build seccomp
|
||||
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
@@ -120,6 +121,13 @@ func setupSeccomp(config *Seccomp, rs *specs.Spec) (*specs.LinuxSeccomp, error)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
for _, flag := range config.Flags {
|
||||
newConfig.Flags = append(newConfig.Flags, specs.LinuxSeccompFlag(flag))
|
||||
}
|
||||
|
||||
newConfig.ListenerPath = config.ListenerPath
|
||||
newConfig.ListenerMetadata = config.ListenerMetadata
|
||||
|
||||
if len(config.ArchMap) != 0 {
|
||||
for _, a := range config.ArchMap {
|
||||
seccompArch, ok := nativeToSeccomp[arch]
|
||||
|
||||
Reference in New Issue
Block a user