diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-07 22:37:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-07 22:37:21 +0000 |
commit | 89fff10d1bc93fb936e5fc9b57cd01f5244e3381 (patch) | |
tree | 6400a9786747ea363b9c57a6d7ebeec2ee6befb7 /pkg/sentry/fsimpl | |
parent | e865f3736b8c2d53ace1364515dfb3a31f3c37af (diff) | |
parent | 10930189c3cd938e7526c55188ba2d814a7b8a43 (diff) |
Merge release-20200622.1-74-g10930189c (automated)
Diffstat (limited to 'pkg/sentry/fsimpl')
-rw-r--r-- | pkg/sentry/fsimpl/tmpfs/filesystem.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/tmpfs/filesystem.go b/pkg/sentry/fsimpl/tmpfs/filesystem.go index ed40f6b52..a0f20c2d4 100644 --- a/pkg/sentry/fsimpl/tmpfs/filesystem.go +++ b/pkg/sentry/fsimpl/tmpfs/filesystem.go @@ -277,7 +277,7 @@ func (fs *filesystem) MknodAt(ctx context.Context, rp *vfs.ResolvingPath, opts v creds := rp.Credentials() var childInode *inode switch opts.Mode.FileType() { - case 0, linux.S_IFREG: + case linux.S_IFREG: childInode = fs.newRegularFile(creds.EffectiveKUID, creds.EffectiveKGID, opts.Mode) case linux.S_IFIFO: childInode = fs.newNamedPipe(creds.EffectiveKUID, creds.EffectiveKGID, opts.Mode) |