fix some file mode bits missing when doing mount syscall

Signed-off-by: lifubang <lifubang@acmcoder.com>
This commit is contained in:
lifubang
2023-08-03 08:44:00 +08:00
parent dbe8434359
commit 6092a4b42d
2 changed files with 19 additions and 1 deletions

View File

@@ -462,7 +462,7 @@ func mountToRootfs(c *mountConfig, m mountEntry) error {
return err
}
} else {
dt := fmt.Sprintf("mode=%04o", stat.Mode())
dt := fmt.Sprintf("mode=%04o", syscallMode(stat.Mode()))
if m.Data != "" {
dt = dt + "," + m.Data
}