1
0
mirror of https://github.com/docker/cli.git synced 2026-01-26 15:41:42 +03:00

Update runc to introduce RelabelNeeded function

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: 00bcc924fa64b16484beeeabbd2969572d03d30d
Component: engine
This commit is contained in:
Alexander Morozov
2015-11-09 10:01:48 -08:00
parent 7359274c6d
commit 7eead35e44
3 changed files with 13 additions and 1 deletions

View File

@@ -65,6 +65,11 @@ func Validate(label string) error {
return nil
}
// RelabelNeeded checks whether the user requested a relabel
func RelabelNeeded(label string) bool {
return false
}
// IsShared checks that the label includes a "shared" mark
func IsShared(label string) bool {
return false

View File

@@ -181,6 +181,11 @@ func Validate(label string) error {
return nil
}
// RelabelNeeded checks whether the user requested a relabel
func RelabelNeeded(label string) bool {
return strings.Contains(label, "z") || strings.Contains(label, "Z")
}
// IsShared checks that the label includes a "shared" mark
func IsShared(label string) bool {
return strings.Contains(label, "z")