mirror of
https://github.com/containers/skopeo.git
synced 2025-09-22 18:37:21 +00:00
bump containers/image to 2541165
Signed-off-by: Paul Fisher <pfisher@lyft.com>
This commit is contained in:
4
vendor/github.com/opencontainers/selinux/go-selinux/label/label_linux.go
generated
vendored
4
vendor/github.com/opencontainers/selinux/go-selinux/label/label_linux.go
generated
vendored
@@ -103,9 +103,11 @@ func SetFileCreateLabel(fileLabel string) error {
|
||||
return selinux.SetFSCreateLabel(fileLabel)
|
||||
}
|
||||
|
||||
// Relabel changes the label of path to the filelabel string.
|
||||
// Relabel changes the label of path and all the entries beneath the path.
|
||||
// It changes the MCS label to s0 if shared is true.
|
||||
// This will allow all containers to share the content.
|
||||
//
|
||||
// The path itself is guaranteed to be relabeled last.
|
||||
func Relabel(path string, fileLabel string, shared bool) error {
|
||||
if !selinux.GetEnabled() || fileLabel == "" {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user