diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-12 20:53:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 20:53:08 -0400 |
commit | 4dc52f61cc5222fe59140f6e6864b78dec8f64f2 (patch) | |
tree | 2add1514b4aaf87f73d3bbc290c664ed9d559a55 /vendor/github.com/opencontainers/selinux/go-selinux/selinux.go | |
parent | 0762970096e0d9f81f88e56b696f1002bf3fe30e (diff) | |
parent | eccd03f3c40ad98b87138e6d67f18785f53da788 (diff) | |
download | podman-4dc52f61cc5222fe59140f6e6864b78dec8f64f2.tar.gz podman-4dc52f61cc5222fe59140f6e6864b78dec8f64f2.tar.bz2 podman-4dc52f61cc5222fe59140f6e6864b78dec8f64f2.zip |
Merge pull request #10316 from containers/dependabot/go_modules/github.com/containers/storage-1.30.3
Bump github.com/containers/storage from 1.30.2 to 1.30.3
Diffstat (limited to 'vendor/github.com/opencontainers/selinux/go-selinux/selinux.go')
-rw-r--r-- | vendor/github.com/opencontainers/selinux/go-selinux/selinux.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go b/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go index d9119908b..b336ebad3 100644 --- a/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go +++ b/vendor/github.com/opencontainers/selinux/go-selinux/selinux.go @@ -11,9 +11,10 @@ const ( Permissive = 0 // Disabled constant to indicate SELinux is disabled Disabled = -1 - + // maxCategory is the maximum number of categories used within containers + maxCategory = 1024 // DefaultCategoryRange is the upper bound on the category range - DefaultCategoryRange = uint32(1024) + DefaultCategoryRange = uint32(maxCategory) ) var ( @@ -276,3 +277,8 @@ func DisableSecOpt() []string { func GetDefaultContextWithLevel(user, level, scon string) (string, error) { return getDefaultContextWithLevel(user, level, scon) } + +// PrivContainerMountLabel returns mount label for privileged containers +func PrivContainerMountLabel() string { + return privContainerMountLabel +} |