diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-01-28 21:49:38 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-28 21:49:38 +0000 |
commit | 0e3ddb2aa6f7cd971510dcdd09ae4d3dc8d849cf (patch) | |
tree | 96c40241f85f393dfb18b8d13ffaa61bb8419c00 /pkg/sentry/fs/attr.go | |
parent | 0ba30993d9369b19149cc236616a9e558820f61a (diff) | |
parent | f263801a74d4ccac042b068d0928c8738e40af5b (diff) |
Merge release-20200115.0-122-gf263801 (automated)
Diffstat (limited to 'pkg/sentry/fs/attr.go')
-rw-r--r-- | pkg/sentry/fs/attr.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/fs/attr.go b/pkg/sentry/fs/attr.go index fa9e7d517..f60bd423d 100644 --- a/pkg/sentry/fs/attr.go +++ b/pkg/sentry/fs/attr.go @@ -206,6 +206,11 @@ func IsPipe(s StableAttr) bool { return s.Type == Pipe } +// IsAnonymous returns true if StableAttr.Type matches any type of anonymous. +func IsAnonymous(s StableAttr) bool { + return s.Type == Anonymous +} + // IsSocket returns true if StableAttr.Type matches any type of socket. func IsSocket(s StableAttr) bool { return s.Type == Socket |