summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-09-21 21:14:05 +0000
committergVisor bot <gvisor-bot@google.com>2021-09-21 21:14:05 +0000
commit11acecfe692f6de652ed94343618dfcd9324af94 (patch)
treee47a8c367e67beb77a1068503e50157776fa8718 /pkg/sentry/vfs
parent88c6c5d6df320b543ac3c1355f5b0c0b4bd3eb8e (diff)
parent6fccc185609e37b0e3346f8df91bdcb37bc990db (diff)
Merge release-20210906.0-52-g6fccc1856 (automated)
Diffstat (limited to 'pkg/sentry/vfs')
-rw-r--r--pkg/sentry/vfs/resolving_path.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/resolving_path.go b/pkg/sentry/vfs/resolving_path.go
index 7fd7f000d..40aff2927 100644
--- a/pkg/sentry/vfs/resolving_path.go
+++ b/pkg/sentry/vfs/resolving_path.go
@@ -223,6 +223,12 @@ func (rp *ResolvingPath) Final() bool {
return rp.curPart == 0 && !rp.pit.NextOk()
}
+// Pit returns a copy of rp's current path iterator. Modifying the iterator
+// does not change rp.
+func (rp *ResolvingPath) Pit() fspath.Iterator {
+ return rp.pit
+}
+
// Component returns the current path component in the stream represented by
// rp.
//