Set mode when creating Merkle tree file

PiperOrigin-RevId: 332340342
This commit is contained in:
Chong Cai
2020-09-17 16:28:43 -07:00
committed by gVisor bot
parent 319d1b8ba0
commit f1f844daab
+1
View File
@@ -372,6 +372,7 @@ func (fs *filesystem) lookupAndVerifyLocked(ctx context.Context, parent *dentry,
Path: fspath.Parse(childMerkleFilename),
}, &vfs.OpenOptions{
Flags: linux.O_RDWR | linux.O_CREAT,
Mode: 0644,
})
if err != nil {
return nil, err