mirror of
https://github.com/containers/buildah.git
synced 2025-04-18 07:04:05 +03:00
This change is generated by `go1.23rc2 fix ./...`. Had to use go1.23rc2, since all released go versions have a bug preventing it from working with `go 1.22.0` in go.mod (opened https://github.com/golang/go/issues/68825, https://github.com/golang/go/issues/68824 for awareness). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
16 lines
312 B
Go
16 lines
312 B
Go
//go:build !seccomp || !linux
|
|
|
|
package buildah
|
|
|
|
import (
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
func setupSeccomp(spec *specs.Spec, seccompProfilePath string) error {
|
|
if spec.Linux != nil {
|
|
// runtime-tools may have supplied us with a default filter
|
|
spec.Linux.Seccomp = nil
|
|
}
|
|
return nil
|
|
}
|