summaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-10-18 14:48:41 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2018-10-23 10:32:32 -0400
commit57b0b89d0ceb77bfd51a4d957f51fcea3d1580f6 (patch)
treec29cf5a145ff7acb05f2a656f821420740c6a2a4 /vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
parent9a6a64f78ca3837a0e02373b2ae7f3769fbde568 (diff)
downloadpodman-57b0b89d0ceb77bfd51a4d957f51fcea3d1580f6.tar.gz
podman-57b0b89d0ceb77bfd51a4d957f51fcea3d1580f6.tar.bz2
podman-57b0b89d0ceb77bfd51a4d957f51fcea3d1580f6.zip
Vendor in latest containers/storage opencontainers/selinux
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go')
-rw-r--r--vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go b/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
index 5dc09a51e..2cd54eac1 100644
--- a/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
+++ b/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
@@ -409,6 +409,13 @@ func NewContext(label string) Context {
return c
}
+// ClearLabels clears all reserved labels
+func ClearLabels() {
+ state.Lock()
+ state.mcsList = make(map[string]bool)
+ state.Unlock()
+}
+
// ReserveLabel reserves the MLS/MCS level component of the specified label
func ReserveLabel(label string) {
if len(label) != 0 {