summaryrefslogtreecommitdiff
path: root/vendor/github.com/containers/buildah/selinux.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/containers/buildah/selinux.go')
-rw-r--r--vendor/github.com/containers/buildah/selinux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/containers/buildah/selinux.go b/vendor/github.com/containers/buildah/selinux.go
index e64eb6112..fea863165 100644
--- a/vendor/github.com/containers/buildah/selinux.go
+++ b/vendor/github.com/containers/buildah/selinux.go
@@ -7,6 +7,10 @@ import (
selinux "github.com/opencontainers/selinux/go-selinux"
)
+func selinuxGetEnabled() bool {
+ return selinux.GetEnabled()
+}
+
func setupSelinux(g *generate.Generator, processLabel, mountLabel string) {
if processLabel != "" && selinux.GetEnabled() {
g.SetProcessSelinuxLabel(processLabel)