summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/tmpfs/socket_file.go
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-06-08 13:27:06 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-08 13:28:18 -0700
commitdc029b4b96e92719b2850e9d5556f68837737997 (patch)
treee49953236bcbd5abcad7db4cc1c5d1743351116b /pkg/sentry/fsimpl/tmpfs/socket_file.go
parent32b823fcdb00a7d6eb5ddcd378f19a659edc3da3 (diff)
Implement VFS2 tmpfs mount options.
As in VFS1, the mode, uid, and gid options are supported. Updates #1197 PiperOrigin-RevId: 315340510
Diffstat (limited to 'pkg/sentry/fsimpl/tmpfs/socket_file.go')
-rw-r--r--pkg/sentry/fsimpl/tmpfs/socket_file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fsimpl/tmpfs/socket_file.go b/pkg/sentry/fsimpl/tmpfs/socket_file.go
index 25c2321af..3ed650474 100644
--- a/pkg/sentry/fsimpl/tmpfs/socket_file.go
+++ b/pkg/sentry/fsimpl/tmpfs/socket_file.go
@@ -26,9 +26,9 @@ type socketFile struct {
ep transport.BoundEndpoint
}
-func (fs *filesystem) newSocketFile(creds *auth.Credentials, mode linux.FileMode, ep transport.BoundEndpoint) *inode {
+func (fs *filesystem) newSocketFile(kuid auth.KUID, kgid auth.KGID, mode linux.FileMode, ep transport.BoundEndpoint) *inode {
file := &socketFile{ep: ep}
- file.inode.init(file, fs, creds, mode)
+ file.inode.init(file, fs, kuid, kgid, mode)
file.inode.nlink = 1 // from parent directory
return &file.inode
}