mirror of
https://github.com/containers/podman.git
synced 2025-06-23 10:38:20 +08:00

Switch from projectatomic/buildah to containers/buildah Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
19 lines
436 B
Go
19 lines
436 B
Go
// +build !linux !selinux
|
|
|
|
package chroot
|
|
|
|
import (
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
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
|
|
}
|