summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/inode.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-01-16 18:13:27 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-16 18:15:02 -0800
commit7a45ae7e67438697296fc12345202e3c76304096 (patch)
treeeb022f8f55b45d59873b449b8ca741f67814295b /pkg/sentry/fs/inode.go
parent1e7f0c822b3a7c643d532d40a14ab79eb1df85c6 (diff)
Implement setxattr for overlays.
PiperOrigin-RevId: 290186303
Diffstat (limited to 'pkg/sentry/fs/inode.go')
-rw-r--r--pkg/sentry/fs/inode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/inode.go b/pkg/sentry/fs/inode.go
index ee9d301ef..e4cf5a570 100644
--- a/pkg/sentry/fs/inode.go
+++ b/pkg/sentry/fs/inode.go
@@ -270,9 +270,9 @@ func (i *Inode) GetXattr(ctx context.Context, name string, size uint64) (string,
}
// SetXattr calls i.InodeOperations.SetXattr with i as the Inode.
-func (i *Inode) SetXattr(ctx context.Context, name, value string, flags uint32) error {
+func (i *Inode) SetXattr(ctx context.Context, d *Dirent, name, value string, flags uint32) error {
if i.overlay != nil {
- return overlaySetxattr(ctx, i.overlay, name, value, flags)
+ return overlaySetxattr(ctx, i.overlay, d, name, value, flags)
}
return i.InodeOperations.SetXattr(ctx, i, name, value, flags)
}