Adding securityfs mount

Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
rajasec 2015-08-05 16:50:08 +05:30
parent 9be9157fc5
commit 24f7a10a93
1 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,11 @@ func mountToRootfs(m *configs.Mount, rootfs, mountLabel string) error {
return err
}
return syscall.Mount(m.Source, dest, m.Device, uintptr(m.Flags), data)
case "securityfs":
if err := os.MkdirAll(dest, 0755); err != nil {
return err
}
return syscall.Mount(m.Source, dest, m.Device, uintptr(m.Flags), data)
case "bind":
stat, err := os.Stat(m.Source)
if err != nil {