mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00

to more closely mimic docker default behavior, the --layers cli option is set to true by default for podman. the buildah environment variable of BUILDAH_LAYERS is still honored and will override the command line input. this should be considered in place of PR #1383. Many thanks for Scott McCarty for inspiring this welcome change. Signed-off-by: baude <bbaude@redhat.com> Closes: #1422 Approved by: rhatdan
13 lines
258 B
Go
13 lines
258 B
Go
// +build selinux,linux
|
|
|
|
package buildah
|
|
|
|
import (
|
|
"github.com/opencontainers/runtime-tools/generate"
|
|
)
|
|
|
|
func setupSelinux(g *generate.Generator, processLabel, mountLabel string) {
|
|
g.SetProcessSelinuxLabel(processLabel)
|
|
g.SetLinuxMountLabel(mountLabel)
|
|
}
|