mirror of
https://github.com/containers/podman.git
synced 2025-09-26 16:25:00 +08:00

Systemd is now complaining or mentioning /var/run as a legacy directory. It has been many years where /var/run is a symlink to /run on all most distributions, make the change to the default. Partial fix for https://github.com/containers/podman/issues/8369 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
19 lines
427 B
Go
19 lines
427 B
Go
// +build !linux
|
|
|
|
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
|
|
}
|