MCPcopy
hub / github.com/google/gvisor / SetXattr

Method SetXattr

pkg/sentry/fsimpl/tmpfs/tmpfs.go:1087–1089  ·  view source on GitHub ↗

SetXattr implements vfs.FileDescriptionImpl.SetXattr.

(ctx context.Context, opts vfs.SetXattrOptions)

Source from the content-addressed store, hash-verified

1085
1086// SetXattr implements vfs.FileDescriptionImpl.SetXattr.
1087func (fd *fileDescription) SetXattr(ctx context.Context, opts vfs.SetXattrOptions) error {
1088 return fd.dentry().inode.setXattr(auth.CredentialsFromContext(ctx), &opts)
1089}
1090
1091// RemoveXattr implements vfs.FileDescriptionImpl.RemoveXattr.
1092func (fd *fileDescription) RemoveXattr(ctx context.Context, name string) error {

Callers

nothing calls this directly

Calls 3

dentryMethod · 0.95
CredentialsFromContextFunction · 0.92
setXattrMethod · 0.45

Tested by

no test coverage detected