func (l *vfsLookup) OpenPath(ctx context.Context, pathname string, opts vfs.OpenOptions, _ *uint, resolveFinal bool) (File, error) {
	vfsObj := l.mntns.Root().Mount().Filesystem().VirtualFilesystem()
	creds := auth.CredentialsFromContext(ctx)
	path := fspath.Parse(pathname)
	pop := &vfs.PathOperation{
		Root:               l.root,
		Start:              l.workingDir,
		Path:               path,
		FollowFinalSymlink: resolveFinal,
	}
	if path.Absolute {
		pop.Start = l.root
	}
	fd, err := vfsObj.OpenAt(ctx, creds, pop, &opts)
	if err != nil {
		return nil, err
	}
	return &vfsFile{file: fd}, nil
}
// OpenPath implements Lookup.
//
// remainingTraversals is not configurable in VFS2, all callers are using the
// default anyways.
//
// TODO(gvisor.dev/issue/1623): Check mount has read and exec permission.
OpenPath implements Lookup.

remainingTraversals is not configurable in VFS2, all callers are using the
default anyways.


// OpenPath implements Lookup . // // remainingTraversals is not configurable in VFS2 all callers are using the // default anyways . // // TODO ( gvisor . dev / issue / 1623 ) : Check mount has read and exec permission .
func (l *vfsLookup) OpenPath(ctx context.Context, pathname string, opts vfs.OpenOptions, _ *uint, resolveFinal bool) (File, error) {
	vfsObj := l.mntns.Root().Mount().Filesystem().VirtualFilesystem()
	creds := auth.CredentialsFromContext(ctx)
	path := fspath.Parse(pathname)
	pop := &vfs.PathOperation{
		Root:               l.root,
		Start:              l.workingDir,
		Path:               path,
		FollowFinalSymlink: resolveFinal,
	}
	if path.Absolute {
		pop.Start = l.root
	}
	fd, err := vfsObj.OpenAt(ctx, creds, pop, &opts)
	if err != nil {
		return nil, err
	}
	return &vfsFile{file: fd}, nil
}
func ( l * vfsLookup ) OpenPath ( ctx context . Context , pathname string , opts vfs . OpenOptions , _ * uint , resolveFinal bool ) ( File , error ) { vfsObj := l . mntns . Root ( ) . Mount ( ) . Filesystem ( ) . VirtualFilesystem ( ) creds := auth . CredentialsFromContext ( ctx ) path := fspath . Parse ( pathname ) pop := & vfs . PathOperation { Root : l . root , Start : l . workingDir , Path : path , FollowFinalSymlink : resolveFinal , } if path . Absolute { pop . Start = l . root } fd , err := vfsObj . OpenAt ( ctx , creds , pop , & opts ) if err != nil { return nil , err } return & vfsFile { file : fd } , nil }
OpenPath implements Lookup.
OpenPath implements Lookup .