Merge pull request #444 from ncdc/dont-label-mqueue

Don't label mqueue when mounting
This commit is contained in:
Mrunal Patel 2015-03-11 11:46:47 -07:00
commit aa10040b57
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ func mount(m *configs.Mount, rootfs, mountLabel string) error {
if err := os.MkdirAll(dest, 0755); err != nil && !os.IsExist(err) {
return err
}
if m.Device == "mqueue" {
// mqueue should not be labeled, otherwise the mount will fail
data = ""
}
return syscall.Mount(m.Source, dest, m.Device, uintptr(m.Flags), data)
case "bind":
stat, err := os.Stat(m.Source)