Files
podman/vendor/github.com/containers/buildah/chroot/selinux_unsupported.go
Daniel J Walsh f67ab1eb20 Vendor in containers/(storage,image, common, buildah)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-07-18 10:42:04 -04:00

21 lines
431 B
Go

//go:build !linux
// +build !linux
package chroot
import (
"errors"
"github.com/opencontainers/runtime-spec/specs-go"
)
func setSelinuxLabel(spec *specs.Spec) error {
if spec.Linux.MountLabel != "" {
return errors.New("configured an SELinux mount label without SELinux support?")
}
if spec.Process.SelinuxLabel != "" {
return errors.New("configured an SELinux process label without SELinux support?")
}
return nil
}