Skip to content

Commit

Permalink
Merge pull request #2558 from rhatdan/windows
Browse files Browse the repository at this point in the history
Since no kernels support direct labeling of /dev/mqueue remove label
  • Loading branch information
AkihiroSuda authored Aug 21, 2020
2 parents 19b63de + 0445fd6 commit e5f2eae
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions libcontainer/rootfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,10 @@ func mountToRootfs(m *configs.Mount, rootfs, mountLabel string, enableCgroupns b
if err := os.MkdirAll(dest, 0755); err != nil {
return err
}
if err := mountPropagate(m, rootfs, mountLabel); err != nil {
// older kernels do not support labeling of /dev/mqueue
if err := mountPropagate(m, rootfs, ""); err != nil {
return err
}
return label.SetFileLabel(dest, mountLabel)
if err := mountPropagate(m, rootfs, ""); err != nil {
return err
}
return nil
return label.SetFileLabel(dest, mountLabel)
case "tmpfs":
copyUp := m.Extensions&configs.EXT_COPYUP == configs.EXT_COPYUP
tmpDir := ""
Expand Down

0 comments on commit e5f2eae

Please sign in to comment.