summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/dev
diff options
context:
space:
mode:
authorKevin <kevinkrakauer@gmail.com>2019-07-11 21:31:26 -0700
committerKevin <kevinkrakauer@gmail.com>2019-07-11 21:31:26 -0700
commitddef7f8078ba87ae2c73c6b89668e01d1da76cfe (patch)
tree1ca9cae6635a096103e621ac57bf277b5c961c0a /pkg/sentry/fs/dev
parent44427d8e267b4c4445c1c217637d802f71e9bf52 (diff)
Fix license year and remove Read.
Diffstat (limited to 'pkg/sentry/fs/dev')
-rw-r--r--pkg/sentry/fs/dev/tty.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/pkg/sentry/fs/dev/tty.go b/pkg/sentry/fs/dev/tty.go
index e1e4fa2cf..b4c2a62fd 100644
--- a/pkg/sentry/fs/dev/tty.go
+++ b/pkg/sentry/fs/dev/tty.go
@@ -1,4 +1,4 @@
-// Copyright 2018 The gVisor Authors.
+// Copyright 2019 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -16,12 +16,9 @@ package dev
import (
"gvisor.dev/gvisor/pkg/abi/linux"
- "gvisor.dev/gvisor/pkg/rand"
"gvisor.dev/gvisor/pkg/sentry/context"
"gvisor.dev/gvisor/pkg/sentry/fs"
"gvisor.dev/gvisor/pkg/sentry/fs/fsutil"
- "gvisor.dev/gvisor/pkg/sentry/safemem"
- "gvisor.dev/gvisor/pkg/sentry/usermem"
"gvisor.dev/gvisor/pkg/waiter"
)
@@ -72,8 +69,3 @@ type ttyFileOperations struct {
}
var _ fs.FileOperations = (*ttyFileOperations)(nil)
-
-// Read implements fs.FileOperations.Read.
-func (*ttyFileOperations) Read(ctx context.Context, _ *fs.File, dst usermem.IOSequence, _ int64) (int64, error) {
- return dst.CopyOutFrom(ctx, safemem.FromIOReader{rand.Reader})
-}