mirror of
https://github.com/containers/podman.git
synced 2025-09-28 17:25:31 +08:00
Vendor in latest containers/buildah
Switch from projectatomic/buildah to containers/buildah Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
18
vendor/github.com/containers/buildah/chroot/selinux_unsupported.go
generated
vendored
Normal file
18
vendor/github.com/containers/buildah/chroot/selinux_unsupported.go
generated
vendored
Normal file
@ -0,0 +1,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
|
||||
}
|
Reference in New Issue
Block a user