diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-08 20:36:28 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-08 20:36:28 +0000 |
commit | 51f0b5a777dd9f968f599e93e467f5eed9dfe479 (patch) | |
tree | 154c551ccdcaf354c1bb61fe20ec5205953de431 /pkg/sentry/fsimpl/tmpfs/regular_file.go | |
parent | 4c47990e36edf3652ce59162da7d9bdf8923c565 (diff) | |
parent | dc029b4b96e92719b2850e9d5556f68837737997 (diff) |
Merge release-20200522.0-95-gdc029b4b (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/tmpfs/regular_file.go')
-rw-r--r-- | pkg/sentry/fsimpl/tmpfs/regular_file.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fsimpl/tmpfs/regular_file.go b/pkg/sentry/fsimpl/tmpfs/regular_file.go index fee174375..4f2ae04d2 100644 --- a/pkg/sentry/fsimpl/tmpfs/regular_file.go +++ b/pkg/sentry/fsimpl/tmpfs/regular_file.go @@ -85,12 +85,12 @@ type regularFile struct { size uint64 } -func (fs *filesystem) newRegularFile(creds *auth.Credentials, mode linux.FileMode) *inode { +func (fs *filesystem) newRegularFile(kuid auth.KUID, kgid auth.KGID, mode linux.FileMode) *inode { file := ®ularFile{ memFile: fs.memFile, seals: linux.F_SEAL_SEAL, } - file.inode.init(file, fs, creds, linux.S_IFREG|mode) + file.inode.init(file, fs, kuid, kgid, linux.S_IFREG|mode) file.inode.nlink = 1 // from parent directory return &file.inode } |