summaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-11 04:56:18 -0400
committerGitHub <noreply@github.com>2021-09-11 04:56:18 -0400
commit0501258b735684948e32019c0499030309349fc9 (patch)
tree7e7bb647489a48686937444e48857ef9ed8e7aeb /vendor/github.com/opencontainers/selinux/go-selinux/selinux.go
parent5e9758fd5f75d8e2be88c9a4b929cbbfd301fb70 (diff)
parent81751bebc69390b6e83182218f90387234d19e7a (diff)
downloadpodman-0501258b735684948e32019c0499030309349fc9.tar.gz
podman-0501258b735684948e32019c0499030309349fc9.tar.bz2
podman-0501258b735684948e32019c0499030309349fc9.zip
Merge pull request #11524 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.8.5
Bump github.com/opencontainers/selinux from 1.8.4 to 1.8.5
Diffstat (limited to 'vendor/github.com/opencontainers/selinux/go-selinux/selinux.go')
-rw-r--r--vendor/github.com/opencontainers/selinux/go-selinux/selinux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go b/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go
index 9ffd77afa..0eedcaa78 100644
--- a/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go
+++ b/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go
@@ -38,6 +38,8 @@ var (
// CategoryRange allows the upper bound on the category range to be adjusted
CategoryRange = DefaultCategoryRange
+
+ privContainerMountLabel string
)
// Context is a representation of the SELinux label broken into 4 parts
@@ -280,5 +282,7 @@ func GetDefaultContextWithLevel(user, level, scon string) (string, error) {
// PrivContainerMountLabel returns mount label for privileged containers
func PrivContainerMountLabel() string {
+ // Make sure label is initialized.
+ _ = label("")
return privContainerMountLabel
}