bump containers/image to 2541165

Signed-off-by: Paul Fisher <pfisher@lyft.com>
This commit is contained in:
Paul Fisher
2021-10-21 13:07:02 -07:00
parent 8f64c0412f
commit c8777f3bf7
31 changed files with 174 additions and 1595 deletions

View File

@@ -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