diff options
Diffstat (limited to 'pkg/sentry/fs/ext/symlink.go')
-rw-r--r-- | pkg/sentry/fs/ext/symlink.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/fs/ext/symlink.go b/pkg/sentry/fs/ext/symlink.go index 0ed67c0e4..6a55c1a7b 100644 --- a/pkg/sentry/fs/ext/symlink.go +++ b/pkg/sentry/fs/ext/symlink.go @@ -28,9 +28,7 @@ type symlink struct { // newSymlink is the symlink constructor. It reads out the symlink target from // the inode (however it might have been stored). -// -// Preconditions: Must hold the mutex of the filesystem containing dev. -func newSymlink(dev io.ReadSeeker, blkSize uint64, inode inode) (*symlink, error) { +func newSymlink(dev io.ReaderAt, blkSize uint64, inode inode) (*symlink, error) { var file *symlink var link []byte |