mirror of
https://github.com/containers/podman.git
synced 2025-09-26 16:25:00 +08:00
Vendor in latest buildah code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
7
vendor/github.com/containers/buildah/selinux.go
generated
vendored
7
vendor/github.com/containers/buildah/selinux.go
generated
vendored
@ -4,9 +4,12 @@ package buildah
|
||||
|
||||
import (
|
||||
"github.com/opencontainers/runtime-tools/generate"
|
||||
selinux "github.com/opencontainers/selinux/go-selinux"
|
||||
)
|
||||
|
||||
func setupSelinux(g *generate.Generator, processLabel, mountLabel string) {
|
||||
g.SetProcessSelinuxLabel(processLabel)
|
||||
g.SetLinuxMountLabel(mountLabel)
|
||||
if processLabel != "" && selinux.GetEnabled() {
|
||||
g.SetProcessSelinuxLabel(processLabel)
|
||||
g.SetLinuxMountLabel(mountLabel)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user