diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-19 00:01:19 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-19 00:01:19 +0000 |
commit | 24e7e3d398a770f7ad8c6f68e5ca30eddf233818 (patch) | |
tree | a960bab2ea0771a016ed04a038aa59771389b4ed /pkg/sentry/vfs/testutil.go | |
parent | 5989cfcc70d3b513577e962a8ab032a8a76d74bc (diff) | |
parent | 744401297a8c93ce5992ba99aa84f3dcdc19ae9e (diff) |
Merge release-20191213.0-28-g7444012 (automated)
Diffstat (limited to 'pkg/sentry/vfs/testutil.go')
-rwxr-xr-x | pkg/sentry/vfs/testutil.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/testutil.go b/pkg/sentry/vfs/testutil.go index 7a1d9e383..d94117bce 100755 --- a/pkg/sentry/vfs/testutil.go +++ b/pkg/sentry/vfs/testutil.go @@ -117,6 +117,26 @@ func (fs *FDTestFilesystem) UnlinkAt(ctx context.Context, rp *ResolvingPath) err return syserror.EPERM } +// ListxattrAt implements FilesystemImpl.ListxattrAt. +func (fs *FDTestFilesystem) ListxattrAt(ctx context.Context, rp *ResolvingPath) ([]string, error) { + return nil, syserror.EPERM +} + +// GetxattrAt implements FilesystemImpl.GetxattrAt. +func (fs *FDTestFilesystem) GetxattrAt(ctx context.Context, rp *ResolvingPath, name string) (string, error) { + return "", syserror.EPERM +} + +// SetxattrAt implements FilesystemImpl.SetxattrAt. +func (fs *FDTestFilesystem) SetxattrAt(ctx context.Context, rp *ResolvingPath, opts SetxattrOptions) error { + return syserror.EPERM +} + +// RemovexattrAt implements FilesystemImpl.RemovexattrAt. +func (fs *FDTestFilesystem) RemovexattrAt(ctx context.Context, rp *ResolvingPath, name string) error { + return syserror.EPERM +} + // PrependPath implements FilesystemImpl.PrependPath. func (fs *FDTestFilesystem) PrependPath(ctx context.Context, vfsroot, vd VirtualDentry, b *fspath.Builder) error { b.PrependComponent(fmt.Sprintf("vfs.fdTestDentry:%p", vd.dentry.impl.(*fdTestDentry))) |