Files
podman/vendor/github.com/containers/buildah/chroot/selinux_unsupported.go
Paul Holzinger eb28a1c084 update buildah and c/common to latest
also includes bumps for c/storage and c/image

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-09-09 11:58:20 +02:00

21 lines
452 B
Go

//go:build !linux && !freebsd
// +build !linux,!freebsd
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
}