mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
20 lines
426 B
Go
20 lines
426 B
Go
//go: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
|
|
}
|