aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/projectatomic/buildah/chroot/selinux_unsupported.go
blob: 1c6f4891210eba8c0d6464961a7eff55689a2abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +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
}