diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-23 21:31:00 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-23 21:31:00 +0000 |
commit | 6ca36534a7488487185aa5bb4922fdcfb2a1bda9 (patch) | |
tree | d9155a9c15ca7200e1c0bc0efa7d44d575cea351 /pkg/sentry/vfs/testutil.go | |
parent | 245d8491449119807b919d3994a62c92210c2cc0 (diff) | |
parent | f45df7505b0e7baf48a37f7c625f05051d144738 (diff) |
Merge release-20191213.0-46-gf45df75 (automated)
Diffstat (limited to 'pkg/sentry/vfs/testutil.go')
-rwxr-xr-x | pkg/sentry/vfs/testutil.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/sentry/vfs/testutil.go b/pkg/sentry/vfs/testutil.go index d94117bce..ee5c8b9e2 100755 --- a/pkg/sentry/vfs/testutil.go +++ b/pkg/sentry/vfs/testutil.go @@ -57,6 +57,11 @@ func (fs *FDTestFilesystem) GetDentryAt(ctx context.Context, rp *ResolvingPath, return nil, syserror.EPERM } +// GetParentDentryAt implements FilesystemImpl.GetParentDentryAt. +func (fs *FDTestFilesystem) GetParentDentryAt(ctx context.Context, rp *ResolvingPath) (*Dentry, error) { + return nil, syserror.EPERM +} + // LinkAt implements FilesystemImpl.LinkAt. func (fs *FDTestFilesystem) LinkAt(ctx context.Context, rp *ResolvingPath, vd VirtualDentry) error { return syserror.EPERM @@ -83,7 +88,7 @@ func (fs *FDTestFilesystem) ReadlinkAt(ctx context.Context, rp *ResolvingPath) ( } // RenameAt implements FilesystemImpl.RenameAt. -func (fs *FDTestFilesystem) RenameAt(ctx context.Context, rp *ResolvingPath, vd VirtualDentry, opts RenameOptions) error { +func (fs *FDTestFilesystem) RenameAt(ctx context.Context, rp *ResolvingPath, oldParentVD VirtualDentry, oldName string, opts RenameOptions) error { return syserror.EPERM } |