diff options
author | Kevin Krakauer <krakauer@google.com> | 2019-10-04 14:19:08 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-04 14:20:32 -0700 |
commit | 7ef1c44a7fe027d60c92b44515655a612d40d034 (patch) | |
tree | 515dadc1ba254e525a4e7fc02238bd7ba449429d /pkg/sentry/fsimpl/memfs/regular_file.go | |
parent | 48745251611b5c152b1a2b66a0f2f30dd4dc1ed9 (diff) |
Change linux.FileMode from uint to uint16, and update VFS to use FileMode.
In Linux (include/linux/types.h), mode_t is an unsigned short.
PiperOrigin-RevId: 272956350
Diffstat (limited to 'pkg/sentry/fsimpl/memfs/regular_file.go')
-rw-r--r-- | pkg/sentry/fsimpl/memfs/regular_file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/memfs/regular_file.go b/pkg/sentry/fsimpl/memfs/regular_file.go index 55f869798..b7f4853b3 100644 --- a/pkg/sentry/fsimpl/memfs/regular_file.go +++ b/pkg/sentry/fsimpl/memfs/regular_file.go @@ -37,7 +37,7 @@ type regularFile struct { dataLen int64 } -func (fs *filesystem) newRegularFile(creds *auth.Credentials, mode uint16) *inode { +func (fs *filesystem) newRegularFile(creds *auth.Credentials, mode linux.FileMode) *inode { file := ®ularFile{} file.inode.init(file, fs, creds, mode) file.inode.nlink = 1 // from parent directory |