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.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/containers/buildah/selinux.go b/vendor/github.com/containers/buildah/selinux.go
new file mode 100644
index 000000000..2b850cf9f
--- /dev/null
+++ b/vendor/github.com/containers/buildah/selinux.go
@@ -0,0 +1,12 @@
+// +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)
+}