diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-16 21:24:24 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-16 21:24:24 +0000 |
commit | c46ddf9c69d71989996115194fbb7b70155396c9 (patch) | |
tree | c33473ec9f50fac99718c9cb481c2c1db7595941 /pkg/sentry/fs/inode.go | |
parent | f1c7bb8642584b8c808b311dfd094479a0424466 (diff) | |
parent | e6f4124afd951c3b089f9c75c499c14f4d90a590 (diff) |
Merge release-20191210.0-31-ge6f4124 (automated)
Diffstat (limited to 'pkg/sentry/fs/inode.go')
-rw-r--r-- | pkg/sentry/fs/inode.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/sentry/fs/inode.go b/pkg/sentry/fs/inode.go index 2d43dff1d..91e2fde2f 100644 --- a/pkg/sentry/fs/inode.go +++ b/pkg/sentry/fs/inode.go @@ -270,6 +270,14 @@ func (i *Inode) Getxattr(name string) (string, error) { return i.InodeOperations.Getxattr(i, name) } +// Setxattr calls i.InodeOperations.Setxattr with i as the Inode. +func (i *Inode) Setxattr(name, value string) error { + if i.overlay != nil { + return overlaySetxattr(i.overlay, name, value) + } + return i.InodeOperations.Setxattr(i, name, value) +} + // Listxattr calls i.InodeOperations.Listxattr with i as the Inode. func (i *Inode) Listxattr() (map[string]struct{}, error) { if i.overlay != nil { |