diff --git a/.gitignore b/.gitignore
index 2007446..c236109 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ tmp
/.vs/
/.vscode/
*.sln
+*.slnx
*.user
*.csproj
*.vcxproj
diff --git a/NOTICE.txt b/NOTICE.txt
index 71b6e1d..24abab4 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -486,1116 +486,6 @@ Apache-2.0 WITH LLVM-exception
---------------------------------------------------------
-StrawberryPerl 5.28.0.1 - GPL-1.0-or-later OR Artistic-1.0-Perl
-
-
-(c) 2009,2012
-(c) OMIX, Inc.
-Copyright 1998
-Copyright 2000
-Copyright 2004
-Copyright 2010
-Copyright 2001.
-copyright 2014.
-(c) Mnemonic C's
-Copyright 1998 I
-(c) 2000 Dr. Seuss
-(c) Copyright 2000
-COPYRIGHT (c) 2010
-Copyright (c) 2000
-Copyright (c) 2001
-Copyright (c) 2006
-Copyright (c) 2008
-Copyright (c) 2010
-Copyright (c) 2011
-Copyright (c) 2012
-Copyright (c) 2013
-Copyright (c) 2016
-Copyright (c) 2017
-Copyright (c) 2018
-copyright (c) 2011
-Copyright 1995-2015
-Copyright 2009-2017
-copyright 1996 King
-copyright_year 2017
-2003 SP1, Sever 2008
-COPYRIGHT Yves Orton
-Copyright 1996 Zenin
-copyright 1995-2004.
-copyright year//2017
-copyrighted (c) 1996
-(c) 2005 Byrne Reese.
-2003 SP1, Server 2008
-Copyright Mark Fowler
-copyrighted by Adobe.
-Copyright (c) 1994-1997
-Copyright (c) 2001-2015
-Copyright (c) 2004-2014
-Copyright (c) 2005-2015
-Copyright (c) 2010 KMX.
-Copyright (c) 2010-2012
-Copyright (c) 2010-2016
-Copyright (c) 2011-2015
-Portions Copyright 2001
-copyright 1996 King Tut
-copyright 2000 Fred Foo
-(c) Rafael Garcia-Suarez
-Copyright (c) 1997, 1998
-Copyright (c) 2009, 2011
-Copyright Mark Overmeer.
-(c) 2017 Unicode(r), Inc.
-Copyright (c) 2001 Single
-Copyright (c) 2005 by mst
-Copyright (c) 2006 - 2011
-Copyright (c) 2007 - 2010
-Copyright (c) 2007 - 2013
-Copyright 2000 Gisle Aas.
-Copyright 2001 Gisle Aas.
-Copyright 2002 Gisle Aas.
-Copyright 2002 Johnny Lee
-Copyright 2003, Gisle Aas
-Copyright 2006 Yves Orton
-Copyright 2009 Gisle Aas.
-Gisle Aas, Copyright 2003
-copyright 2004, Published
-copyright by Ken Williams
-COPYRIGHT Tom Christiansen
-Copyright (c) 2009 by yvbl
-Copyright 2003 Graham Barr
-Copyright 2004 Simon Flack
-Copyright 2015 Chad Granum
-Copyright 2016 Chad Granum
-Copyright 2016 cPanel Inc.
-Copyright 2018 Chad Granum
-copyright (c) 2008 by yvbl
-(c) 2004 Dennis K. Paulsen.
-(c) Copyright 2000 Fred Foo
-Copyright (c) 1996 by Eryq.
-Copyright (c) 2007 - 2010 L
-Copyright (c) Ken Williams.
-Copyright 1999 Tye McQueen.
-Copyright 2001, Larry Wall.
-Copyright 2006 Chris Dolan.
-Copyright 2010 Adam Kennedy
-Copyright 2010 Grant McLean
-Copyright 2012 David Golden
-Copyright 2017 Jens Rehsack
-copyright 2008 Audrey Tang.
-Copyright (c) 1998 Gisle Aas
-Copyright (c) 2001,2002 RIPE
-Copyright (c) 2001-2005 RIPE
-Copyright (c) 2002 Your Name
-Copyright (c) 2003 Tim Bunce
-Copyright (c) 2003-2005 RIPE
-Copyright (c) 2007 Bob Free.
-Copyright (c) 2015 Bob Free.
-Copyright 2006-2018 Sisyphus
-Copyright 2009, Paul Fenwick
-Copyright 2010, Shlomi Fish.
-Copyright 2011 Joachim Zobel
-Copyright 2012 David Oswald.
-Copyright 2014 Laurent Dami.
-Copyright 2016 Unicode, Inc.
-Copyright 2017 Stefan Hermes
-Copyright, 2005 Simon Wistow
-Copyright, 2006 Simon Wistow
-Copyright (c) 1995 Your Name.
-Copyright (c) 1996 Dave Roth.
-Copyright (c) 1998, Tim Bunce
-Copyright (c) 2001 Dave Cross
-Copyright (c) 2002 Sam Tregar
-Copyright (c) 2009-2010, Goro
-Copyright (c) 2013 Fred Moyer
-Copyright (c) 2014 Steve Hay.
-Copyright (c) 2016 Cpanel Inc
-Copyright (c) Takumi Akiyama.
-Copyright 2000-2002 Tim Bunce
-Copyright 2001, Sean M. Burke
-Copyright 2002 Sreeji K. Das.
-Copyright 2002-2014 Dan Kogai
-Copyright 2004 by Daniel Muey
-Copyright 2006 by Randy Kobes
-Copyright 2010 Curtis Jewell.
-Copyright 2013, Niels Thykier
-Copyright Laurent Dami, 2014.
-(c) Copyright 2007 Arthur Dent
-Copyright (c) 2000 Mark Kvale.
-Copyright (c) 2004-2005 Nokia.
-Copyright (c) 2005 Byrne Reese
-Copyright (c) 2006 Google Inc.
-Copyright (c) 2006-2017 Hatuka
-Copyright (c) 2009, Goro Fuji.
-Copyright (c) 2009-2012 Hatuka
-Copyright (c) 2009-2013 Hatuka
-Copyright (c) 2009-2018 Hatuka
-Copyright (c) 2011 Mark Allen.
-Copyright (c) 2012 M. Nunberg.
-Copyright (c) 2013 Google Inc.
-Copyright (c) 2014 cPanel Inc.
-Copyright (c) 2017 Mark Allen.
-Copyright (c) 2017 Reini Urban
-Copyright 1987-2018 Larry Wall
-Copyright 1995 Martijn Koster.
-Copyright 1995, Martijn Koster
-Copyright 1995-1998 Gisle Aas.
-Copyright 1995-1999 Gisle Aas.
-Copyright 1995-2000 Gisle Aas.
-Copyright 1995-2001 Gisle Aas.
-Copyright 1995-2004 Gisle Aas.
-Copyright 1995-2006 Gisle Aas.
-Copyright 1995-2009 Gisle Aas.
-Copyright 1995-2009, Gisle Aas
-Copyright 1995-2017 Mark Adler
-Copyright 1996,2001 Gisle Aas.
-Copyright 1996-2001 Gisle Aas.
-Copyright 1996-2001, Gisle Aas
-Copyright 1996-2003, Gisle Aas
-Copyright 1996-2004 Gisle Aas.
-Copyright 1996-2010, Gisle Aas
-Copyright 1996-2016 Gisle Aas.
-Copyright 1997 Uwe Hollerbach.
-Copyright 1997-1998, Gisle Aas
-Copyright 1997-1999 Gisle Aas.
-Copyright 1997-2011 Gisle Aas.
-Copyright 1998-1999 Gisle Aas.
-Copyright 1998-2000 Gisle Aas.
-Copyright 1998-2001 Gisle Aas.
-Copyright 1998-2002 Gisle Aas.
-Copyright 1998-2003 Gisle Aas.
-Copyright 1998-2005 Gisle Aas.
-Copyright 1998-2006 Gisle Aas.
-Copyright 1998-2008 Gisle Aas.
-Copyright 1998-2010 Gisle Aas.
-Copyright 1999-2004 Gisle Aas.
-Copyright 2001 Benjamin Trott.
-Copyright 2001-2017 Ray Finch.
-Copyright 2002, Sean M. Burke.
-Copyright 2003 Julius C. Duque
-Copyright 2007 David Cantrell.
-Copyright 2010 by Mark Dootson
-Copyright 2012 Steffen Mueller
-copyright (c) 2002 Jos Boumans
-copyright (c) 2005 Jos Boumans
-copyright (c) 2014 cPanel Inc.
-(c) 1995 Microsoft Corporation.
-(c) 1999 Microsoft Corporation.
-Copyright (c) 1998 Graham Barr.
-Copyright (c) 2000 Clark Cooper
-Copyright (c) 2000 Graham Barr.
-Copyright (c) 2002 Mark Fowler.
-Copyright (c) 2002 T.J. Mather.
-Copyright (c) 2003 Graham Barr.
-Copyright (c) 2004 X Consortium
-Copyright (c) 2006 Bob Mathews.
-Copyright (c) 2006 DelTel, Inc.
-Copyright (c) 2008 Paul Fenwick
-Copyright (c) 2010 Mark Dootson
-Copyright (c) 2011 Dick Franks.
-Copyright (c) 2011 Tim Jenness.
-Copyright (c) 2012 Dick Franks.
-Copyright (c) 2013 Dick Franks.
-Copyright (c) 2014 Dick Franks.
-Copyright (c) 2015 Dick Franks.
-Copyright (c) 2016 Dick Franks.
-Copyright (c) 2016, cPanel Inc.
-Copyright (c) 2017 Dick Franks.
-Copyright (c) Mihai Bazon 2008.
-Copyright (c) MingW-W64 Project
-Copyright 1995-1999, Gisle Aas.
-Copyright 2002 Jonathan Leffler
-Copyright 2008 by Laurent Dami.
-Copyright 2011 Christian Hansen
-Copyright 2012 by Dana Jacobsen
-Copyright 2013 by Dana Jacobsen
-Copyright 2017 by Dana Jacobsen
-copyright 1998 by Gabor Egressy
-copyright 2000 - 2004 Ned Konz.
-copyrighted by Dovecot authors.
-Copyright (c) 1997 Michael Fuhr.
-Copyright (c) 2000 Andy Wardley.
-Copyright (c) 2000 Michael Fuhr.
-Copyright (c) 2000, W3Works, LLC
-Copyright (c) 2001, Kurt Kincaid
-Copyright (c) 2003 Simon Cozens.
-Copyright (c) 2008 Andy Wardley.
-Copyright (c) 2008 Yuval Kogman.
-Copyright (c) 2016 Unicode, Inc.
-Copyright (c) jQuery Foundation.
-Copyright 1995 Lincoln D. Stein.
-Copyright 1995,1996 Neil Winton.
-Copyright 1995-1996 Neil Winton.
-Copyright 1998 The Perl Journal.
-Copyright 1999 Barrie Slaymaker.
-Copyright 1999-2004 Grant McLean
-Copyright 2001 Barrie Slaymaker.
-Copyright 2001, Barrie Slaymaker
-Copyright 2002-2008 by chromatic
-Copyright 2004-2010 John Peacock
-Copyright 2004-2018 by Dan Sully
-Copyright 2005-2008 Andy Lester.
-Copyright 2007-2009 Matt S Trout
-Copyright 2008 by Chia-liang Kao
-Copyright 2011-2015 Mateu Hunter
-Copyright 2013 Tom Christiansen.
-Copyright 2018 Gianni Ceccarelli
-Copyright MM-MMX, John McNamara.
-Copyrights 1995-2000 Graham Barr
-copyright (c) 1994 by Tim Bunce.
-copyright 2000 The Perl Journal.
-COPYRIGHT (c) MMV, John McNamara.
-Copyright (c) 1990-2007 Info-ZIP.
-Copyright (c) 1994-2006 Tim Bunce
-Copyright (c) 1994-2007 Tim Bunce
-Copyright (c) 1997-8 Graham Barr.
-Copyright (c) 1999, Ken Williams.
-Copyright (c) 2000-2002 Ned Konz.
-Copyright (c) 2001 Paul Kulchenko
-Copyright (c) 2002 James Tillman.
-Copyright (c) 2002 Richard Clamp.
-Copyright (c) 2002 Sean M. Burke.
-Copyright (c) 2003 Richard Clamp.
-Copyright (c) 2004 Sean M. Burke.
-Copyright (c) 2004 by Jeff Zucker
-Copyright (c) 2005 Paul Marquess.
-Copyright (c) 2005, Damian Conway
-Copyright (c) 2007 Martin Kutter.
-Copyright (c) 2007-14 Rob Kinyon.
-Copyright (c) 2009 Yann Kerherve.
-Copyright (c) 2010-2015 the Moo L
-Copyright (c) 2012, Steve Peters.
-Copyright (c) 2013 by Joel Berger
-Copyright (c) 2014 A. Sinan Unur.
-Copyright (c) 2014 Douglas Wilson
-Copyright (c) 2017 Stefan Hermes.
-Copyright 2000,2001 Sean M. Burke
-Copyright 2001 Abhijit Menon-Sen.
-Copyright 2001-2014. Ingy dot Net
-Copyright 2002-2006 Abe Timmerman
-Copyright 2002-2007 Adrian Howard
-Copyright 2008-2009, Paul Fenwick
-Copyright Andy Wardley 1998-2007.
-Copyright Micheal G Schwern 2001.
-copyright (c) 2004 by Casey West.
-copyright (c) 2014 by Arthur Axel
-copyright (c) 2014 by Mark Allen.
-copyright (c) 2016 by Arthur Axel
-copyright (c) 2018 by Arthur Axel
-copyright 1999-2010 W3Works, LLC.
-copyright 2004, Lincoln D. Stein.
-parts copyright 2011 Aaron Crane.
-COPYRIGHT (c) MMXV, John McNamara.
-Copyright (c) 1994-2013 Larry Wall
-Copyright (c) 1997 Alan Citterman.
-Copyright (c) 1997 Jochen Wiedmann
-Copyright (c) 1998+ Sean M. Burke.
-Copyright (c) 1998-2004 Tom Hughes
-Copyright (c) 2000 Paul Kulchenko.
-Copyright (c) 2000 Simon Matthews.
-Copyright (c) 2000, Andrew Benham.
-Copyright (c) 2000-9, Leon Brocard
-Copyright (c) 2001+ Sean M. Burke.
-Copyright (c) 2001, Paul Marquess.
-Copyright (c) 2003-2005 Yves Orton
-Copyright (c) 2003-2017 J-L Morel.
-Copyright (c) 2006 Simon Wilkinson
-Copyright (c) 2007 Brandon L Black
-Copyright (c) 2008- Martin Kutter.
-Copyright (c) 2010 Krasimir Berov.
-Copyright (c) 2010 by Jens Rehsack
-Copyright (c) 2011 by Dave Rolsky.
-Copyright (c) 2013 Chris Williams.
-Copyright (c) 2013-2014 Steve Hay.
-Copyright (c) 2013-2016 Steve Hay.
-Copyright (c) 2013-2017 Steve Hay.
-Copyright (c) 2014 by Dave Rolsky.
-Copyright (c) 2015-2016 cPanel Inc
-Copyright (c) 2016 Chris Marshall.
-Copyright (c) 2016 by Dave Rolsky.
-Copyright (c) 2017 by Dave Rolsky.
-Copyright 1999 - 2006 Tye McQueen.
-Copyright 2000-2005 Sean M. Burke.
-Copyright 2000-2018, Steve Hancock
-Copyright 2001, t0mas@netlords.net
-Copyright 2001-2003 AxKit.com Ltd.
-Copyright 2001-2009 AxKit.com Ltd.
-Copyright 2001-2018. Ingy dot Net.
-Copyright 2002 by Janek Schleicher
-Copyright 2002-2010 by Audrey Tang
-Copyright 2003 - 2007 Fergal Daly.
-Copyright 2003 by Michel Rodriguez
-Copyright 2003-2008 by Audrey Tang
-Copyright 2003-2010 by Audrey Tang
-Copyright 2003-2011 by Audrey Tang
-Copyright 2004-2009 by Audrey Tang
-Copyright 2004-2014. Ingy dot Net.
-Copyright 2004-2017. Ingy dot Net.
-Copyright 2005, 2006 Adam Kennedy.
-Copyright 2005-2018. Ingy dot Net.
-Copyright 2006,2008 by Randy Kobes
-Copyright 2007-2018. Ingy dot Net.
-Copyright 2012 Alessandro Ghedini.
-Copyright 2013 Alessandro Ghedini.
-Copyright 2013 by Kenichi Ishigaki
-Copyright 2013-2014, Niels Thykier
-Copyright 2014 Alessandro Ghedini.
-Copyright MM-MMXII, John McNamara.
-Copyright MM-MMXVI, John McNamara.
-Portions Copyright 2001 Ray Finch.
-copyright (c) 2009 by Philip Gwyn.
-copyright (c) 2017 by Dave Rolsky.
-copyright (c) 2018 by Dave Rolsky.
-copyright 2002, Daniel J. Harasty.
-parts copyright 2005 Steve Peters.
-parts copyright 2006 Chris Nandor.
-parts copyright 2009 Adam Kennedy.
-parts copyright 2010 Adam Kennedy.
-COPYRIGHT 2001-2007, AxKit.com Ltd.
-Copyright (c) 1998, Jochen Wiedmann
-Copyright (c) 2000 Andrew Tridgell.
-Copyright (c) 2001 Michael Hennecke
-Copyright (c) 2001, Colin McMillen.
-Copyright (c) 2001-2010 Neil Bowers
-Copyright (c) 2002 Jonathan Leffler
-Copyright (c) 2002-2003, Rob Brown.
-Copyright (c) 2002-2009 Neil Bowers
-Copyright (c) 2003 Chris Reinhardt.
-Copyright (c) 2003-2018 Mark Shelor
-Copyright (c) 2004 Peter Marschall.
-Copyright (c) 2006-2008 Gabor Szabo
-Copyright (c) 2007,2008 NLnet Labs.
-Copyright (c) 2007-10 Max Maischein
-Copyright (c) 2009 by David Golden.
-Copyright (c) 2011 by Joachim Zobel
-Copyright (c) 2012 by Daniel Dragan
-Copyright (c) 2013 by David Golden.
-Copyright (c) 2013,2015 Dick Franks
-Copyright (c) 2014 by David Golden.
-Copyright (c) 2014,2017 Dick Franks
-Copyright (c) 2014-2017 cPanel Inc.
-Copyright (c) 2016 by Jesse Luehrs.
-Copyright (c) 2016- by Jens Rehsack
-Copyright 1995-1998,2004 Gisle Aas.
-Copyright 2000-2010, John McNamara.
-Copyright 2001 - 2011 Adam Kennedy.
-Copyright 2001 by Jarkko Hietaniemi
-Copyright 2001 by Michael G Schwern
-Copyright 2001-2009, AxKit.com Ltd.
-Copyright 2003, 2004 by Fergal Daly
-Copyright 2003, R. Barrie Slaymaker
-Copyright 2005 - 2009 Adam Kennedy.
-Copyright 2005 - 2011 Adam Kennedy.
-Copyright 2005 - 2012 Adam Kennedy.
-Copyright 2006 - 2010 Adam Kennedy.
-Copyright 2006 - 2011 Adam Kennedy.
-Copyright 2006 - 2013 Adam Kennedy.
-Copyright 2006-2008 Curtis Ovid Poe
-Copyright 2007 - 2011 Adam Kennedy.
-Copyright 2007-2011 Andy Armstrong.
-Copyright 2008 - 2009 Adam Kennedy.
-Copyright 2008 - 2011 Adam Kennedy.
-Copyright 2009 - 2011 Adam Kennedy.
-Copyright 2009 - 2012 Adam Kennedy.
-Copyright 2010- Tatsuhiko Miyagawa.
-Copyright 2011 Breno G. de Oliveira
-Copyright 2014 - 2018 Jens Rehsack.
-Copyright 2015-2017 by Jens Rehsack
-Copyright 2017- by Kenichi Ishigaki
-copyright (c) 2003 by Simon Cozens.
-copyright (c) 2004 by Simon Cozens.
-copyright (c) 2010 by Adam Kennedy.
-copyright (c) 2013 by David Golden.
-copyright (c) 2013 by Jesse Luehrs.
-copyright (c) 2014 by Jesse Luehrs.
-copyright (c) 2015 by Robin Berjon.
-copyright (c) 2016 by Adam Kennedy.
-copyright (c) 2016 by David Golden.
-copyright (c) 2016 by Jesse Luehrs.
-copyright (c) 2017 by Adam Kennedy.
-copyright (c) 2017 by Graham Ollis.
-parts copyright 2000 Sean M. Burke.
-Copyright (c) 1995-1997 Graham Barr.
-Copyright (c) 1995-1998 Graham Barr.
-Copyright (c) 1995-2004 Graham Barr.
-Copyright (c) 1995-2006 Graham Barr.
-Copyright (c) 1995-2009 Graham Barr.
-Copyright (c) 1997, 1999 Tom Phoenix
-Copyright (c) 1997-1998 Graham Barr.
-Copyright (c) 1998-2004 Graham Barr.
-Copyright (c) 1998-2005 Graham Barr.
-Copyright (c) 1998-2011 Graham Barr.
-Copyright (c) 2000 Ilya Zakharevich.
-Copyright (c) 2000,2002 Thomas Pfau.
-Copyright (c) 2000-2004 Tim Jenness.
-Copyright (c) 2002-2004 Graham Barr.
-Copyright (c) 2003 Sidney Markowitz.
-Copyright (c) 2003- Euro6IX project.
-Copyright (c) 2005-6 Joshua Hoblitt.
-Copyright (c) 2006, Portugal Telecom
-Copyright (c) 2008 - 2010 Kazuho Oku
-Copyright (c) 2009 Tokuhiro Matsuno.
-Copyright (c) 2009,2012 Dick Franks.
-Copyright (c) 2009-2011 Dick Franks.
-Copyright (c) 2011-2012 Dick Franks.
-Copyright (c) 2011-2014 Reini Urban.
-Copyright (c) 2012 Tom Christiansen.
-Copyright (c) 2012,2016 Dick Franks.
-Copyright (c) 2012-2013 Google, Inc.
-Copyright (c) 2012-2017 Joel Berger.
-Copyright (c) 2017- Kenichi Ishigaki
-Copyright 1987-2018, Larry Wall Perl
-Copyright 1997 - 2001 Damian Conway.
-Copyright 2001-2008 Barrie Slaymaker
-Copyright 2006, William Hart. SIMPQS
-Copyright 2006-2016 by Brian Cassidy
-Copyright 2007-2008 Brandon L. Black
-Copyright 2008-2009 by Brian Cassidy
-Copyright 2009 - 2011 Jerome Quelin.
-Copyright 2011 by Serguei Trouchelle
-Copyright 2011-2017 by Dana Jacobsen
-Copyright 2012-2013 by Dana Jacobsen
-Copyright 2012-2016 by Dana Jacobsen
-Copyright 2014 Christopher J. Madsen
-Copyright 2014-2016 by Dana Jacobsen
-Copyright MM-MMXVIII, John McNamara.
-copyright (c) 1998 by Gabor Egressy.
-copyright (c) 2001 by Damian Conway.
-copyright (c) 2007 by Shawn M Moore.
-copyright (c) 2008 by Shawn M Moore.
-copyright (c) 2012-2017 Joel Berger.
-copyright 2002 - 2007 Matt Sergeant.
-(c) by Tels L
-Copyright (c) 1996-2000 Andy Wardley.
-Copyright (c) 1996-2001 Andy Wardley.
-Copyright (c) 1996-2006 Andy Wardley.
-Copyright (c) 1996-2007 Andy Wardley.
-Copyright (c) 1996-2008 Andy Wardley.
-Copyright (c) 1996-2013 Andy Wardley.
-Copyright (c) 1996-2014 Andy Wardley.
-Copyright (c) 1996-2015 Andy Wardley.
-Copyright (c) 1997,1998 Michael Fuhr.
-Copyright (c) 1997-2000 Michael Fuhr.
-Copyright (c) 1997-2001 Michael Fuhr.
-Copyright (c) 1997-2003 Andy Wardley.
-Copyright (c) 1997-2007 Andy Wardley.
-Copyright (c) 1998 by Jochen Wiedmann
-Copyright (c) 1998-2008 Andy Wardley.
-Copyright (c) 1999-2003 Joshua Chamas
-Copyright (c) 2000,2001 Michael Fuhr.
-Copyright (c) 2000-2007 Andy Wardley.
-Copyright (c) 2001-2006 Ken Williams.
-Copyright (c) 2001-2007 Andy Wardley.
-Copyright (c) 2001-2008 Ken Williams.
-Copyright (c) 2001-2008 Robin Berjon.
-Copyright (c) 2001-2009 Andy Wardley.
-Copyright (c) 2001-2011 Ken Williams.
-Copyright (c) 2002 Tim Bunce Ireland.
-Copyright (c) 2002,3,4 Sean M. Burke.
-Copyright (c) 2002-2007 Andy Wardley.
-Copyright (c) 2003-2005 Ken Williams.
-Copyright (c) 2003-2014 Max Maischein
-Copyright (c) 2006 by Steffen Mueller
-Copyright (c) 2006, 2013 Google Inc..
-Copyright (c) 2007-2008 Martin Kutter
-Copyright (c) 2009-2013 John McNamara
-Copyright (c) 2010-2014 A. Sinan Unur
-Copyright (c) 2010-2018 Sullivan Beck
-Copyright (c) 2011-2015 Buddy Burden.
-Copyright (c) 2011-2018 Sullivan Beck
-Copyright (c) 2012 by Leon Timmermans
-Copyright (c) 2013-2017 Jens Rehsack.
-Copyright (c) 2014 by David A Golden.
-Copyright (c) 2015 by Salvador FandiE
-Copyright (c) 2017-2018, Reini Urban.
-Copyright (c) 2018 by David A Golden.
-Copyright 1990,2015 by Johan Vromans.
-Copyright 1996-1998 Gurusamy Sarathy.
-Copyright 1999-2000 Michael A. Chase.
-Copyright 2001-2011 Jarkko Hietaniemi
-Copyright 2006 - 2011 Benjamin Trott.
-Copyright 2013 - 2017 by Jens Rehsack
-Copyrights 1995-2018 by Mark Overmeer
-Copyrights 2016-2018 by Mark Overmeer
-Portions copyright 2007 David Golden.
-copyright (c) 1994-2017 by Gisle Aas.
-copyright (c) 1998 by Maurice Aubrey.
-copyright (c) 2001-2017 by Gisle Aas.
-copyright (c) 2002 - 2009 Jos Boumans
-copyright (c) 2002-2017 by Gisle Aas.
-copyright (c) 2004 by Ricardo SIGNES.
-copyright (c) 2005 by Ricardo SIGNES.
-copyright (c) 2006 by Ricardo Signes.
-copyright (c) 2007 by Ricardo Signes.
-copyright (c) 2010 by Ricardo Signes.
-copyright (c) 2013 by Ricardo Signes.
-copyright (c) 2015 by Ricardo SIGNES.
-copyright (c) 2015 by Ricardo Signes.
-copyright (c) 2017 by Ricardo Signes.
-copyright (c) 2018 by Ricardo Signes.
-(c) Copyright 1998-2007 by Mark Mielke
-Copyright (c) 1994,1997,1998 Tim Bunce
-Copyright (c) 1995-2011 Paul Marquess.
-Copyright (c) 1995-2016 Paul Marquess.
-Copyright (c) 1995-2018 Paul Marquess.
-Copyright (c) 1997 Roderick Schertler.
-Copyright (c) 1997,1999 Tim Bunce With
-Copyright (c) 1997-2007, Damian Conway
-Copyright (c) 1997-2015 Paul Marquess.
-Copyright (c) 1998, Robert D. Cameron.
-Copyright (c) 1998-2004 Sean M. Burke.
-Copyright (c) 1999-2002 Marko Asplund.
-Copyright (c) 1999-2004 Sean M. Burke.
-Copyright (c) 2000 by James H. Turner.
-Copyright (c) 2000, Vipul Ved Prakash.
-Copyright (c) 2000-2006 Kawai Takanori
-Copyright (c) 2000-2008 Takanori Kawai
-Copyright (c) 2001, Vipul Ved Prakash.
-Copyright (c) 2001-2004 Sean M. Burke.
-Copyright (c) 2001-2011 Ian Robertson.
-Copyright (c) 2002 Andreas Gustafsson.
-Copyright (c) 2002,2011 Richard Clamp.
-Copyright (c) 2002-2004 Sean M. Burke.
-Copyright (c) 2002-2007 Sean M. Burke.
-Copyright (c) 2002-2009 Richard Clamp.
-Copyright (c) 2004-2009 by Jeff Zucker
-Copyright (c) 2005 Aristotle Pagaltzis
-Copyright (c) 2005-2018 Paul Marquess.
-Copyright (c) 2006-2007 David Landgren
-Copyright (c) 2009-2017 H.Merijn Brand
-Copyright (c) 2011-2018 Paul Marquess.
-Copyright (c) AEvar Arnfjord Bjarmason
-Copyright 1995-1998, Lincoln D. Stein.
-Copyright 2005-2010 by Steffen Mueller
-Copyright 2006-2009 by Steffen Mueller
-Copyright 2006-2010 by Steffen Mueller
-Portions Copyright (c) 2002 Rob Brown.
-copyright (c) 1996- by Andreas Koenig.
-copyright (c) 2001 - 2007, Jos Boumans
-copyright (c) 2003 Mark Jason Dominus.
-copyright (c) 2005 by Curtis Ovid Poe.
-copyright (c) 2008 by Florian Ragwitz.
-copyright (c) 2008 by Leon Timmermans.
-copyright (c) 2009 by Florian Ragwitz.
-copyright (c) 2010 by Leon Timmermans.
-copyright (c) 2012 by Leon Timmermans.
-copyright (c) 2013 by Karen Etheridge.
-copyright (c) 2013 by Leon Timmermans.
-copyright (c) 2014 by Karen Etheridge.
-copyright (c) 2014 by Leon Timmermans.
-copyright (c) 2015 by Leon Timmermans.
-copyright 1995-2005, Lincoln D. Stein.
-copyright 1995-2007, Lincoln D. Stein.
-copyright 1995-2010, Lincoln D. Stein.
-parts copyright 2006 Stephen Steneker.
-Copyright (c) 1995-98 Ilya Zakharevich.
-Copyright (c) 1997,1998 Jochen Wiedmann
-Copyright (c) 1998-2002 Ernesto Guisado
-Copyright (c) 1999, Kenneth Albanowski.
-Copyright (c) 2000-2001 Paul Kulchenko.
-Copyright (c) 2000-2001, Damian Conway.
-Copyright (c) 2000-2004 Paul Kulchenko.
-Copyright (c) 2000-2005 Paul Kulchenko.
-Copyright (c) 2000-2007 Paul Kulchenko.
-Copyright (c) 2000-2008 James H. Turner
-Copyright (c) 2000-2014, Damian Conway.
-Copyright (c) 2001-2014, Damian Conway.
-Copyright (c) 2002-2005 Peter Behroozi.
-Copyright (c) 2003-2005 Allison Randal.
-Copyright (c) 2006 by Philipp K. Janert
-Copyright (c) 2006-2008 by Paul Fenwick
-Copyright (c) 2007, Tim Bunce, Ireland.
-Copyright (c) 2007-2011, Andy Armstrong
-Copyright (c) 2007-2016 H.Merijn Brand.
-Copyright (c) 2007-2018 H.Merijn Brand.
-Copyright (c) 2009-2012 Daniel Stenberg
-Copyright (c) 2010, Tim Bunce, Ireland.
-Copyright (c) 2011 John Scoles. Canada.
-Copyright (c) 2013-2015 Salvador FandiE
-Copyright (c) 2016,2017 by Jens Rehsack
-Copyright 1995 - 2013 by Andreas Koenig
-Copyright 2010 Gisle Aas
-Copyright 2015-2018 by Janek Schleicher
-Parts Copyright (c) 2000-2004 Ned Konz.
-Portions Copyright (c) 2014 Dick Franks
-Portions copyright 2007, Joel Bernstein
-copyright (c) 1998-2003 by Mark Mielke.
-copyright (c) 2002 by Ilya Zakharevich.
-copyright (c) 2004-2016 by Andy Lester.
-copyright (c) 2015 by Christian Hansen.
-copyright (c) 2016 by Christian Hansen.
-parts copyright 2008 Wolfgang Sourdeau.
-(c) JS Foundation and other contributors
-COPYRIGHT (c) MM-MMXVIII, John McNamara.
-Copyright (c) 1996, 1997 Malcolm Beattie
-Copyright (c) 1998-2001 Jochen Wiedmann.
-Copyright (c) 2000-2011 Adekunle Olonoh.
-Copyright (c) 2000-2018 by Steve Hancock
-Copyright (c) 2003,2004 Chris Reinhardt.
-Copyright (c) 2004-2006 Peter Marschall.
-Copyright (c) 2004-2011 Steffen Goeldner
-Copyright (c) 2006-2007 by (Anno Siegel)
-Copyright (c) 2006-2014 Steffen Ullrich.
-Copyright (c) 2008, 2009 Florian Ragwitz
-Copyright (c) 2009 Christopher Marshall.
-Copyright (c) 2013-2014, 2016 Steve Hay.
-Copyright 1995-1997,2002-2004 Gisle Aas.
-Copyright 2001-2008 by Michael G Schwern
-Copyright 2003 Matthew Simon Cavalletto.
-Copyright 2004-2007, 2010 by Audrey Tang
-Copyright 2007-2008 by Michael G Schwern
-Copyright 2011-2017 Breno G. de Oliveira
-Copyright 2011-2017 by Christian Hansen.
-Copyright 2013-2017 by Christian Hansen.
-Copyright 2015-2017 by Christian Hansen.
-Portions Copyright (c) 2011 Dick Franks.
-Portions Copyright (c) 2012 Dick Franks.
-Portions Copyright (c) 2013 Dick Franks.
-Portions Copyright (c) 2015 Dick Franks.
-Portions Copyright (c) 2017 Dick Franks.
-Portions Copyright 2006 Portugal Telecom
-copyright (c) 2008 by John Napiorkowski.
-copyright (c) 2014-2018 by Graham Ollis.
-copyright (c) 2016 by chromatic@wgz.org.
-parts copyright 2008 Francis J. Lacoste.
-parts copyright 2009-2011 Jerome Quelin.
-COPYRIGHT (c) 1995 Microsoft Corporation.
-Copyright (c) 1994-2003 Tim Bunce Ireland
-Copyright (c) 1994-2010 Tim Bunce Ireland
-Copyright (c) 1994-2012 Tim Bunce Ireland
-Copyright (c) 1995-2001, Raphael Manfredi
-Copyright (c) 1996-2017 Gurusamy Sarathy.
-Copyright (c) 1997-2002 Tim Bunce Ireland
-Copyright (c) 1999-2000 by Marek Rouchal.
-Copyright (c) 2000-2003 Stephen McCamant.
-Copyright (c) 2001-2016 by Marek Rouchal.
-Copyright (c) 2002-2005 Steffen Goeldner.
-Copyright (c) 2003 - 2018 by Dave Rolsky.
-Copyright (c) 2004 by the Perl 5 Porters.
-Copyright (c) 2006-2009 by Steffen Muller
-Copyright (c) 2009-2011,2017 Dick Franks.
-Copyright (c) 2012 - 2017 by Dave Rolsky.
-Copyright (c) 2016 - 2018 by Dave Rolsky.
-Copyright (c) 2017, GoodData Corporation.
-Copyright 2004, 2006, 2010 by Audrey Tang
-Copyright 2010 by Makamaka Hannyaharamitu
-Copyright 2011-2013 by Serguei Trouchelle
-Copyright 2011-2014 by Serguei Trouchelle
-Portions Copyright (c) 1997 Michael Fuhr.
-Portions Copyright (c) 2001 Tony M Hoyle.
-Portions Copyright (c) 2003 Olaf Kolkman.
-Portions Copyright (c) 2005 Olaf Kolkman.
-copyright (c) 2003 - 2018 by Dave Rolsky.
-copyright (c) 2014, 2017 by Toby Inkster.
-parts copyright 2006 - 2012 Adam Kennedy.
-parts copyright 2007 - 2009 Adam Kennedy.
-parts copyright 2008 - 2009 Adam Kennedy.
-parts copyright 2008 - 2013 Adam Kennedy.
-parts copyright 2010 - 2011 Adam Kennedy.
-Copyright (c) 1994-2005 Tim Bunce, Ireland
-Copyright (c) 1996, Kenneth J. Albanowski.
-Copyright (c) 1998, 2002, 2003 Jon Orwant.
-Copyright (c) 1998-2004 by Jochen Wiedmann
-Copyright (c) 2000 - 2017 by David Rolsky.
-Copyright (c) 2001,2002 Michael K. Neylon.
-Copyright (c) 2002,2003 Tim Bunce Ireland.
-Copyright (c) 2006-2007 Jarkko Hietaniemi.
-Copyright (c) 2006-2009 by Steffen Mueller
-Copyright (c) 2010-2018, Sebastian Riedel.
-Copyright (c) 2011, 2012, 2013 Andrew Main
-Copyright (c) 2012-2018 by Richard Simoes.
-Portions Copyright (c) 1994-1997 Tim Bunce
-Portions copyright 2006-2008 Adam Kennedy.
-(c) (c) PS. Attributes PSPS EUR. Attributes
-Additions copyright 1996 by Charles Bailey.
-Copyright (c) 1994,1995,1996,1998 Tim Bunce
-Copyright (c) 1994-2006 Tim Bunce. Ireland.
-Copyright (c) 1994-2012 Tim Bunce. Ireland.
-Copyright (c) 1998,1999 Kenneth Albanowski.
-Copyright (c) 2000, 2003, 2004 Tim Jenness.
-Copyright (c) 2000-2001, Vipul Ved Prakash.
-Copyright (c) 2000-2008, Vipul Ved Prakash.
-Copyright (c) 2001-2002 Michael G. Schwern.
-Copyright (c) 2002 VeriSign, Mike Schiraldi
-Copyright (c) 2004, 2008 Matthijs van Duin.
-Copyright (c) 2005, 2006 by David B. Robins
-Copyright (c) 2007, 2008, 2009 Matt S Trout
-Copyright (c) 2008 by Larry Wall and others
-Copyright (c) 2008-2009 Greg Sabino Mullane
-Copyright (c) 2012 by Larry Wall and others
-Copyright (c) 2014 by Larry Wall and others
-Copyright (c) 2015 by Larry Wall and others
-Copyright 1990-1992 RSA Data Security, Inc.
-Copyright 1991-1992 RSA Data Security, Inc.
-Copyright 2002, 2003, 2004 by Autrijus Tang
-Copyright 2005 Ken Williams and Randy Sims.
-Copyright 2013, Paul Fenwick
-Copyright E Chris Williams and Jos Boumans.
-Portions Copyright (c) 1997 Alan Citterman.
-copyright (c) 2008 by Infinity Interactive.
-copyrighted by the Free Software Foundation
-Copyright (c) 1994-2018, Greg Sabino Mullane
-Copyright (c) 1996-2009 David Muir Sharnoff.
-Copyright (c) 2000 Lincoln D. Stein Slightly
-Copyright (c) 2000, Tim Bunce, Thomas Lowery
-Copyright (c) 2000, by Larry Wall and others
-Copyright (c) 2002, ActiveState Corporation.
-Copyright (c) 2004-14 by the Perl 5 Porters.
-Copyright (c) 2005 Olaf Kolkman, NLnet Labs.
-Copyright (c) 2007 Olaf Kolkman, NLnet Labs.
-Copyright (c) 2007-2008, Tim Bunce, Ireland.
-Copyright (c) 2008 Olaf Kolkman, NLnet Labs.
-Copyright (c) 2009 Olaf Kolkman, NLnet Labs.
-Copyright (c) 2011 - 2018 by Salvador FandiE
-Copyright 1997, 2000, 2002, 2013 Jay Rogers.
-Copyright 2006 by Infinity Interactive, Inc.
-Portions Copyright (c) 2002 Jeffrey W. Baker
-Portions Copyright (c) 2003 Chris Reinhardt.
-Portions Copyright (c) 2007,2008 NLnet Labs.
-Portions Copyright (c) 2007-2015 Dick Franks
-Portions Copyright 1994 David Muir Sharnoff.
-copyright (c) 1996 by Kenneth J. Albanowski.
-copyright (c) 2013 by Tim Jenness and the UK
-copyright (c) 2014 by Christopher J. Madsen.
-portions Copyright (c) 1997-2004 Jeff Urlwin
-Copyright (c) 1991-2, RSA Data Security, Inc.
-Copyright (c) 1994-2000 by Bradford Appleton.
-Copyright (c) 1996-2000 by Bradford Appleton.
-Copyright (c) 1996-2002 Douglas E. Wegscheid.
-Copyright (c) 1998-2000 by Bradford Appleton.
-Copyright (c) 2002-2007 by D.H. aka PodMaster
-Copyright (c) 2002-2014 by the Perl 5 Porters
-Copyright (c) 2003-2008, 2012-2014 Steve Hay.
-Copyright (c) 2008,2009 Larry Wall and others
-Copyright (c) 2012 Willem Toorop, NLnet Labs.
-Copyright 2004 - 2010 by Tassilo von Parseval
-Portions Copyright (c) 1997-2001 Edmund Mergl
-Portions Copyright (c) 2002-2009 Olaf Kolkman
-Portions Copyright (c) 2007,2012 Dick Franks.
-Portions Copyright (c) 2010,2012 Dick Franks.
-Portions Copyright (c) 2011,2017 Dick Franks.
-Portions Copyright (c) 2012,2015 Dick Franks.
-Portions Copyright (c) 2012,2017 Dick Franks.
-Portions Copyright (c) 2014,2015 Dick Franks.
-Portions Copyright (c) 2014-2017 Dick Franks.
-copyright (c) 2004, 2008 by Matthijs van Duin
-parts copyright 2009 - 2013 Kenichi Ishigaki.
-portions Copyright (c) 1997 Thomas K. Wenrich
-COPYRIGHTS Benjamin Trott, ben@rhumba.pair.com
-Copyright (c) 1996, 1997, 1998 Malcolm Beattie
-Copyright (c) 1997 Jochen Wiedmann Am Eisteich
-Copyright (c) 1997,1998,1999 Tim Bunce England
-Copyright (c) 1999-2004 Igor Pavlov 2004-02-15
-Copyright (c) 2000 Lincoln D. Stein Formatting
-Copyright (c) 2000,2001 Kawai Takanori. Japan.
-Copyright (c) 2004,2007 by the Perl 5 Porters.
-Copyright (c) 2004-2013 by the Perl 5 Porters.
-Copyright (c) 2005-2013 by Adriano R. Ferreira
-Copyright 2005-2013 by Makamaka Hannyaharamitu
-Copyright 2005-2015 by Makamaka Hannyaharamitu
-Copyright 2006-2011, 2014, 2016, 2018 Sisyphus
-Copyright 2007-2011 by Makamaka Hannyaharamitu
-Copyright 2007-2012 by Makamaka Hannyaharamitu
-Copyright 2007-2014 by Makamaka Hannyaharamitu
-Copyright 2007-2016 by Makamaka Hannyaharamitu
-Copyright 2015 Michael LaGrasta and Dan Kogai.
-Copyright Benjamin Trott, cpan@stupidfool.org.
-Portions Copyright (c) 2003-2005 Rudolf Lippan
-Portions Copyright (c) 2005-2007 Olaf Kolkman.
-copyright (c) 2007 by Robert phaylon Sedlacek.
-copyright (c) 2012 by Robert phaylon Sedlacek.
-copyright (c) 2013-2014, 2017 by Toby Inkster.
-copyright 2008-2009, Ash Berlin
-parts copyright 2004 - 2005 Richard Soderberg.
-(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
-(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
-Copyright (c) 1999,2001 by ZeeGee Software Inc.
-Copyright (c) 2001 Canon Research Centre Europe
-Copyright (c) 2004-2013, Marcus Holland-Moritz.
-Copyright (c) 2015-2018 by Pali
-Copyright (c) 2016-2017 by Pali
-Copyright 1995-1999, 2001-2004, 2010 Gisle Aas.
-Copyright 1997, 2000, 2002, 2013 by Jay Rogers.
-Copyright 2000, Andrew Benham, adsb@bigfoot.com
-Copyright 2001, Lincoln Stein
-Copyright 2003, 2004, 2005, 2006 by Audrey Tang
-Copyright 2004, 2005, 2006, 2007 by Audrey Tang
-Portions Copyright 2006-2011 by Benjamin Trott.
-copyright (c) 2014 by Dagfinn Ilmari Mannsaker.
-portions copyright 2006, 2007 by Joel Bernstein
-(c) Paul Evans, 2010-2015 leonerd@leonerd.org.uk
-Copyright (c) 1991-1992, RSA Data Security, Inc.
-Copyright (c) 1998 Graham Barr
-Copyright (c) 2002 Graham Barr
-Copyright (c) 2004 Cold Spring Harbor Laboratory
-Copyright (c) 2004-2015 Best Practical Solutions
-Copyright (c) 2005-2015 Makamaka Hannyaharamitu.
-Copyright (c) 2007-2015 Makamaka Hannyaharamitu.
-Copyright (c) 2008 Graham Barr
-Copyright (c) 2008, 2010, 2013, 2014 Reini Urban
-Copyright (c) 2015-2018 by Pali E pali@cpan.orgE
-Copyright 1998 (c) Byron Brummer. Copyright 1998
-Copyright 2004 by Audrey Tang
-Copyright 2009, 2010, 2011, 2012 Steffen Mueller
-Portions Copyright (c) 1997-2003 Jochen Wiedmann
-Portions Copyright (c) 2001 Jonathan M Gilligan.
-copyright (c) 1998 Francois Desarmenien, France.
-copyright (c) 2006 by Infinity Interactive, Inc.
-copyright 2005 Fergal Daly
-copyright Systemics Ltd http://www.systemics.com
-portions Copyright (c) 2007-2014 Martin J. Evans
-Copyright (c) 1989 Free Software Foundation, Inc.
-Copyright (c) 1990-2011 by Larry Wall and others.
-Copyright (c) 1990-2012 by Larry Wall and others.
-Copyright (c) 1999 Tuomas J. Lukka
-Copyright (c) 2001-2005 RIPE NCC, Olaf M. Kolkman
-Copyright (c) 2007, 2011 by Larry Wall and others
-Copyright (c) 2008 Marc Lehmann
-Copyright (c) 2010, 2011 by Larry Wall and others
-Copyright (c) Katholieke Universiteit Leuven 1996
-Copyright 1991 Bell Communications Research, Inc.
-Copyright 2000 by Joe Smith
-Copyright 2001 Abhijit Menon-Sen
-Portions Copyright (c) 2002,2003 Chris Reinhardt.
-Portions Copyright (c) 2002-2003 Chris Reinhardt.
-Portions Copyright (c) 2002-2004 Chris Reinhardt.
-Portions Copyright (c) 2004-2006 Alexey Stroganov
-Portions Copyright (c) 2005 Robert Martin-Legene.
-Copyright (c) 1995 Graham Barr & Nick Ing-Simmons.
-Copyright (c) 1996-8 Graham Barr
-Copyright (c) 1997-8 Graham Barr
-Copyright (c) 1998-2000 Joshua Nathaniel Pritikin.
-Copyright (c) 2001-2012, SADAHIRO Tomoyuki. Japan.
-Copyright (c) 2001-2017, SADAHIRO Tomoyuki. Japan.
-Copyright (c) 2004 Peter Marschall
-Copyright (c) 2004-2017, SADAHIRO Tomoyuki. Japan.
-Copyright 2000-2007 Michael Stevens, Andy Wardley.
-Copyright 2005, 2006 by Infinity Interactive, Inc.
-Portions Copyright (c) 2003,2006-2011 Dick Franks.
-Portions Copyright (c) 2004-2013 Patrick Galbraith
-copyright (c) 2004 by Simon Cozens and Casey West.
-Copyright (c) 1998-2000 Larry Wall and Clark Cooper
-Copyright (c) 1998-2004 Tom Hughes
-Copyright (c) 1999, Tim Bunce, Phlip, Thomas Lowery
-Copyright (c) 2000-2006 Paul Kulchenko, Byrne Reese
-Copyright (c) 2002, 2003, 2006, 2007 Richard Clamp.
-Copyright (c) 2002, Thomas Lowery, Steffen Goeldner
-Copyright (c) 2003, Thomas Lowery, Steffen Goeldner
-Copyright (c) 2007-2008 NLnet Labs, Olaf M. Kolkman
-Copyright (c) 2010 by H.Merijn Brand & Jens Rehsack
-Copyright (c) 2011 by Jonathan Yu
-Copyright 1995-2017 Jean-loup Gailly and Mark Adler
-Copyright 2001 Benjamin Trott, ben@rhumba.pair.com.
-Copyright 2001 Benjamin Trott, cpan@stupidfool.org.
-Copyright 2001-2006 Ken Williams. 2010 Matt S Trout
-Copyright 2003 by Fergal Daly
-Copyright 2004 Benjamin Trott, cpan@stupidfool.org.
-Portions Copyright (c) 2005-2009 O.M, Kolkman, RIPE
-copyright (c) 2015 by Simon Flack and David Golden.
-copyright_holder E. Xavier Ample
-Copyright (c) 1997-2001 Canon Research Centre Europe
-Copyright (c) 1998 Canon Research Centre Europe Ltd.
-Copyright (c) 2000-2012 Graham Barr
-Copyright (c) 2005 Florian Ragwitz
-Copyright (c) 2010-2011 Matt Trout and David Golden.
-Copyright 2012 Kurt Starsinic
-Copyright 2017 Marty Pauley
-Portions Copyright (c) 2009 Olaf Kolkman, NLnet Labs
-copyright (c) 2004 by Ken Williams, Leon Timmermans.
-copyright (c) 2006 by Ken Williams, Leon Timmermans.
-copyright (c) 2011 by Ken Williams, Leon Timmermans.
-copyright (c) 2011 by Leon Timmermans, David Golden.
-copyright (c) 2014 by Adam Kennedy and Contributors.
-copyright (c) 2017 by Kent Fredric
-Copyright (c) 1997-2003 Graham Barr
-Copyright (c) 1997-2007 Graham Barr
-Copyright (c) 1997-2009 Graham Barr
-Copyright (c) 2000-2002 Graham Barr
-Copyright (c) 2000-2005 Graham Barr
-Copyright (c) 2004-2006 Graham Barr
-Copyright (c) 2008-2018, Sebastian Riedel and others.
-Copyright (c) 2010 by David Golden and Ricardo Signes
-Copyright 1998, 1999, 2000, 2001, 2012 M. J. Dominus.
-Portions Copyright (c) 2005 Olaf Kolkman, NLnet Labs.
-Portions Copyright (c) 2006 Olaf Kolkman (NLnet Labs)
-Copyright (c) 1996-2002,2005,2006 David Muir Sharnoff.
-Copyright (c) 1996-2003 Sampo Kellomaki
-Copyright (c) 2000-2007 Michael Stevens, Andy Wardley.
-Copyright (c) 2001-2007 Nathan Wiger
-Copyright (c) 2002-2018 Greg Sabino Mullane and others
-Copyright (c) 2003-2018 Mark Shelor
-Copyright (c) 2005 Mike McCauley
-Copyright (c) 2007-2014 Dave Rolsky
-Copyright (c) 2014 Paul Evans
-Copyright 1999-2000 by Russ Allbery
-Copyright 2000-2010, John McNamara, jmcnamara@cpan.org
-Copyright 2000-2012, John McNamara, jmcnamara@cpan.org
-Copyright 2000-2016, John McNamara, jmcnamara@cpan.org
-Copyright 2000-2018, John McNamara, jmcnamara@cpan.org
-Copyright 2004, 2010 by Audrey Tang
-Copyright 2009, 2010, 2011, 2012, 2013 Steffen Mueller
-copyright (c) 2004 by Adam Kennedy and Ricardo SIGNES.
-copyright (c) 2010 by David Golden and Ricardo Signes.
-Copyright (c) 2007-2016 H.Merijn Brand for PROCURA B.V.
-Copyright (c) 2008, 2010, 2011 by Larry Wall and others
-Copyright 1998 M-J. Dominus. (mjd-perl-diff@plover.com)
-Copyright 2004-2014 by Christian Renz
-Copyrights 1999-2018 by Mark Overmeer
-Copyrights 2007-2018 by Mark Overmeer
-copyright (c) 1997 - 2018 by Graham Barr & Dave Rolsky.
-copyright (c) 2017 by Michael Schwern and David Golden.
-Copyright (c) 2003-2004, 2012-2013 by the gtk2-perl team
-Copyright (c) 2009-2013 by H.Merijn Brand & Jens Rehsack
-Copyright (c) 2010 Simon Josefsson
-Copyright (c) 2010-2013 by H.Merijn Brand & Jens Rehsack
-Copyright (c) 2010-2013 by Jens Rehsack & H.Merijn Brand
-Portions Copyright (c) 2005 Olaf M. Kolkman, NLnet Labs.
-Copyright (c) 1997,1998 Canon Research Centre Europe Ltd.
-Copyright (c) 1998-2000 Canon Research Centre Europe Ltd.
-Copyright (c) 1998-2001 Canon Research Centre Europe Ltd.
-Copyright (c) 1998-2003 Canon Research Centre Europe Ltd.
-Copyright (c) 2000, 1996, 1991, 2012 O'Reilly Media, Inc.
-Copyright (c) 2000-2016 Hajimu UMEMOTO
-Copyright (c) 2002, 2003, 2004, 2012 Elizabeth Mattijsen.
-Copyright (c) 2004-2009, Sara Golemon
-Copyright (c) 2005-2006 Florian Ragwitz
-Copyrights 2013-2018 by Mark Overmeer
-Copyright 1999-2010, 2012-2018 Russ Allbery
-copyright (c) 2015 by Michael G. Schwern and David Golden.
-Copyright (c) 1996-2003 Sampo Kellomaki
-Copyright (c) 1997-2010 Tom Christiansen, Nathan Torkington
-Copyright (c) 1997-2013 Tom Christiansen, Nathan Torkington
-Copyright (c) 2008 Martin Kutter (martin.kutter@fen-net.de)
-Copyright 2000 Christian Lackas, Imperia Software Solutions
-Copyright (c) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
-Copyright (c) 1998 - 2016, Daniel Stenberg,
-Copyright (c) 2000-2007 Thierry-Michel Barral, Andy Wardley.
-Copyright (c) 2014-2018 by David Pinkowitz
-Copyright 1998, 1999, 2000, 2001, 2012 by Mark Jason Dominus
-Copyright 2004, 2006, 2010 by Audrey Tang
-Copyright 2006-2010, Andy Lester 2010-2015 David E. Wheeler.
-copyright (c) 2002 by Per Einar Ellefsen
-Copyright (c) 2000-2005, Damian Conway and Michael G Schwern.
-Copyright (c) 1996, 2000, 2001, 2005, by Larry Wall and others
-Copyright (c) 2000-2001 Paul Kulchenko (paulclinger@yahoo.com)
-Copyright (c) 2000-2003 Paul Kulchenko (paulclinger@yahoo.com)
-Copyright (c) 2000-2004 Paul Kulchenko (paulclinger@yahoo.com)
-Copyright (c) 2000-2005 Paul Kulchenko (paulclinger@yahoo.com)
-Copyright (c) 2000-2007 Paul Kulchenko (paulclinger@yahoo.com)
-Copyright (c) 2001, Tim Bunce, Thomas Lowery, Steffen Goeldner
-Copyright (c) 2004-2017 Jean-Louis Morel
-Copyright (c) 2002, 2003, 2004, 2006, 2009, 2011 Richard Clamp.
-Copyright (c) 2006-2008 John Scoles (The Pythian Group), Canada
-Copyright 2007-2014 by Alexandr Ciornii, L
-copyright (c) 2006, 2009 by Qindel Formacion y Servicios, S. L.
-Copyright (c) 2006, 2007, 2009, 2010, 2011 Larry Wall and others
-Copyright (c) 2006-2011 John Scoles (The Pythian Group). Canada.
-Copyright (c) 2010 - 2016 by Rafael Kitover (rkitover@cpan.org).
-Copyright 1998-2001, 2004, 2007 by Sean M. Burke and David Hand.
-Copyright (c) 2005 - 2010 by David B. Robins (dbrobins@cpan.org).
-Copyright (c) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
-Copyright (c) 2006-2010 Matt S. Trout
-Copyright 2001, 2008, 2009, 2014, 2018 Russ Allbery
-copyright (c) 1994 by the Regents of the University of California.
-Copyright (c) 2002, 2003, 2005, 2006, 2007 by Larry Wall and others
-Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 by Steffen Mueller
-Portions (c) 1999 ActiveState Tool Corp, http://www.ActiveState.com
-Copyright (c) 1995, 1996, 1997, 1998 Doug MacEachern and Jon Orwant.
-Copyright (c) 1989, 1993 The Regents of the University of California.
-Copyright (c) 2000-2002 Kawai Takanori and Nippon-RAD Co. OP Division
-Copyright (c) 2006 Simon Wilkinson, Achim Grolms and Peter Marschall.
-Copyright 2001, 2004, 2008, 2014, 2018 by Russ Allbery
-Parts Copyright (c) 1999, 2001 W3Works, LLC (http://www.w3works.com/)
-Copyright (c) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
-Copyright (c) 1998-2000, 2002, 2003, 2004, 2005, 2006 Stephen McCamant.
-Copyright Tim Bunce, Thomas K. Wenrich, Jeff Urlwin and Martin J. Evans
-Parts Copyright (c) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
-Copyright (c) 1991, 1992, 1993, 2000, 2004, 2011 by Larry Wall and others
-Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Jarkko Hietaniemi.
-Copyright (c) 2003- Rafael Martinez Torres
-Copyright 2002-2014 by Ken Williams, David Golden and other contributors.
-Copyright 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017 Vincent Pit
-copyright (c) 2008 by Infinity Interactive, Inc. http://www.iinteractive.com.
-Copyright (c) 2004, 2006, 2007, 2009, 2010, 2011, 2012, 2014, 2017 Andrew Main
-Copyright 1999, 2001, 2004, 2006, 2008, 2009, 2018 Russ Allbery
-copyright (c) 2008, 2009, 2010, 2011, 2012 by Leon Timmermans
-Copyright (c) 1994-1999 Kenneth Albanowski. 2001-2005 Jonathan Stowe and others
-Copyright 2003-2004, 2012-2013 by muppet, Ross McFarland, and the gtk2-perl team
-copyright (c) 2018 by Jos Boumans, Ken Williams, Chris Williams and David Golden.
-Copyright 1999-2001, 2004, 2006, 2008, 2010, 2012-2018 Russ Allbery
-copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
-Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2015 Russ Allbery
-Copyright (c) 1997, 1998, 2000, 2001, 2005, 2006, 2007, 2011 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1995, 1996, 1998, 2000, 2001, by Larry Wall and others
-Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, by Larry Wall and others
-Copyright 1999-2002, 2004, 2006, 2008-2009, 2012-2016, 2018 Russ Allbery
-copyright 1998 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal.
-copyright 1999 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal.
-copyright 2000 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal.
-Copyright (c) 1997-2003 Jonathan Leffler, Jochen Wiedmann, Steffen Goeldner and Tim Bunce
-Copyright (c) 1997-2006 Jonathan Leffler, Jochen Wiedmann, Steffen Goeldner and Tim Bunce
-Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2015, 2018 Russ Allbery
-Copyright (c) 2000, 2001, 2002, 2005, 2006, 2007, 2009, 2010, 2011 by Larry Wall and others
-Copyright (c) 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by Larry Wall and others
-Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, by Larry Wall and others
-Copyright 1999, 2001-2002, 2004, 2006, 2008-2009, 2014-2015, 2018 Russ Allbery
-Copyright (c) 1998-2002 Graham Barr and 2001 Chris Ridd
-Copyright (c) 1997-2006 by Gurusamy Sarathy and Jan Dubois
-Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1999, 2001, 2002, 2003, 2004, 2005, 2007, by Larry Wall and others
-Copyright (c) 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2007, by Larry Wall and others
-copyright (c) Charles Bailey, Tim Bunce, David Landgren, James Keenan and Richard Elberger 1995-2017.
-Copyright (c) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005, 2006, 2007 by Larry Wall and others
-Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, by Larry Wall and others
-Copyright (c) 1993, 1994, 1996, 1997, 1999, 2000, 2001, 2003, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 2003-2009 Graham Barr, Djamel Boudjerda, Paul Connolly, Julian Onions, Nexor and Yann Kerherve.
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2006, 2007, by Larry Wall and others
-Copyright (c) 2001, 2002, 2003, 2005, 2006, 2007, 2009, 2010, 2011 by Larry Wall, Nick Ing-Simmons, and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2002, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by Larry Wall and others
-Copyright (c) 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2016 by Larry Wall and others
-Copyright (c) 2003-2009 Graham Barr, Djamel Boudjerda, Paul Connolly, Julian Onions, Nexor, Peter Marschall and Yann Kerherve.
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by Larry Wall and others
-Copyright (c) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2006, 2007, 2008, by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2008, by Larry Wall and others
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, by Larry Wall and others
-Copyright (c) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, by Larry Wall and others
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by Larry Wall and others
-Copyright 1995-1998 Gisle Aas, 1999-2004 Sean M. Burke, 2005 Andy Lester, 2006 Pete Krawczyk, 2010 Jeff Fearn, 2012 Christopher J. Madsen.
-Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2005, 2006, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Russ Allbery
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2012 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
-Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by Larry Wall and others
-Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012, 2013 by Larry Wall and others
-Copyright (c) 1998-2003 World Wide Web Consortium (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University).
-Copyright (c) 1998-2008 World Wide Web Consortium (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University).
-
-GPL-1.0-or-later OR Artistic-1.0-Perl
-
----------------------------------------------------------
-
----------------------------------------------------------
-
-Microsoft.Windows.SDK.NET.Ref 10.0.26100.75 - LicenseRef-scancode-unknown
-
-
-(c) Microsoft Corporation
-Copyright (c) Microsoft Corporation
-
-LicenseRef-scancode-unknown
-
----------------------------------------------------------
-
----------------------------------------------------------
-
CommunityToolkit.Mvvm 8.4.0 - MIT
@@ -1676,7 +566,7 @@ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
---------------------------------------------------------
-Microsoft.Extensions.Hosting 9.0.8 - MIT
+Microsoft.Extensions.Hosting 10.0.0 - MIT
Copyright (c) 2021
@@ -1699,7 +589,7 @@ Copyright (c) 2005-2020 Rich Felker
Copyright (c) 2012-2021 Yann Collet
Copyright (c) Microsoft Corporation
Copyright (c) 2007 James Newton-King
-Copyright (c) 1991-2022 Unicode, Inc.
+Copyright (c) 1991-2024 Unicode, Inc.
Copyright (c) 2013-2017, Alfred Klomp
Copyright (c) 2018 Nemanja Mijailovic
Copyright 2012 the V8 project authors
@@ -1720,7 +610,6 @@ Copyright (c) The Internet Society (2003)
Copyright (c) .NET Foundation Contributors
(c) 1995-2024 Jean-loup Gailly and Mark Adler
Copyright (c) 2020 Mara Bos
-Copyright (c) .NET Foundation and Contributors
Copyright (c) 2012 - present, Victor Zverovich
Copyright (c) 2006 Jb Evain (jbevain@gmail.com)
Copyright (c) 2008-2020 Advanced Micro Devices, Inc.
@@ -1737,252 +626,15 @@ Copyright (c) 1980, 1986, 1993 The Regents of the University of California
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 The Regents of the University of California
Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & Digital Equipment Corporation, Maynard, Mass
-The MIT License (MIT)
+MIT License
-Copyright (c) .NET Foundation and Contributors
+Copyright (c)
-All rights reserved.
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-
----------------------------------------------------------
-
----------------------------------------------------------
-
-Microsoft.NETCore.App.Runtime.win-arm64 9.0.10 - MIT
-
-
-Copyright (c) 2021
-Copyright (c) Six Labors
-(c) Microsoft Corporation
-Copyright (c) 2022 FormatJS
-Copyright (c) Andrew Arnott
-Copyright 2019 LLVM Project
-Copyright (c) 1998 Microsoft
-Copyright 2018 Daniel Lemire
-Copyright (c) .NET Foundation
-Copyright 1995-2022 Mark Adler
-Copyright 1995-2024 Mark Adler
-Copyright (c) 2011, Google Inc.
-Copyright (c) 2020 Dan Shechter
-(c) 1997-2005 Sean Eron Anderson
-Copyright (c) 2015 Andrew Gallant
-Copyright (c) 2022, Wojciech Mula
-Copyright (c) 2017 Yoshifumi Kawai
-Copyright (c) 2022, Geoff Langdale
-Copyright (c) 2005-2020 Rich Felker
-Copyright (c) 2012-2021 Yann Collet
-Copyright (c) Microsoft Corporation
-Copyright (c) 2007 James Newton-King
-Copyright (c) 1991-2022 Unicode, Inc.
-Copyright (c) 2013-2017, Alfred Klomp
-Copyright (c) 2018 Nemanja Mijailovic
-Copyright 2012 the V8 project authors
-Copyright (c) 1999 Lucent Technologies
-Copyright (c) 2008-2016, Wojciech Mula
-Copyright (c) 2011-2020 Microsoft Corp
-Copyright (c) 2015-2017, Wojciech Mula
-Copyright (c) 2015-2018, Wojciech Mula
-Copyright (c) 2005-2007, Nick Galbreath
-Copyright (c) 2015 The Chromium Authors
-Copyright (c) 2018 Alexander Chermyanin
-Copyright (c) The Internet Society 1997
-Copyright (c) 2004-2006 Intel Corporation
-Copyright (c) 2011-2015 Intel Corporation
-Copyright (c) 2013-2017, Milosz Krajewski
-Copyright (c) 2016-2017, Matthieu Darbois
-Copyright (c) The Internet Society (2003)
-Copyright (c) .NET Foundation Contributors
-(c) 1995-2024 Jean-loup Gailly and Mark Adler
-Copyright (c) 2020 Mara Bos
-Copyright (c) .NET Foundation and Contributors
-Copyright (c) 2012 - present, Victor Zverovich
-Copyright (c) 2006 Jb Evain (jbevain@gmail.com)
-Copyright (c) 2008-2020 Advanced Micro Devices, Inc.
-Copyright (c) 2019 Microsoft Corporation, Daan Leijen
-Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.com)
-Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors
-Copyright (c) 2014 Ryan Juckett http://www.ryanjuckett.com
-Copyright 1995-2024 Jean-loup Gailly and Mark Adler Qkkbal
-Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
-Portions (c) International Organization for Standardization 1986
-Copyright (c) YEAR W3C(r) (MIT, ERCIM, Keio, Beihang) Disclaimers
-Copyright (c) 2015 THL A29 Limited, a Tencent company, and Milo Yip
-Copyright (c) 1980, 1986, 1993 The Regents of the University of California
-Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 The Regents of the University of California
-Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & Digital Equipment Corporation, Maynard, Mass
-
-The MIT License (MIT)
-
-Copyright (c) .NET Foundation and Contributors
-
-All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-
----------------------------------------------------------
-
----------------------------------------------------------
-
-Microsoft.NETCore.App.Runtime.win-x64 9.0.10 - MIT
-
-
-Copyright (c) 2021
-Copyright (c) Six Labors
-(c) Microsoft Corporation
-Copyright (c) 2022 FormatJS
-Copyright (c) Andrew Arnott
-Copyright 2019 LLVM Project
-Copyright (c) 1998 Microsoft
-Copyright 2018 Daniel Lemire
-Copyright (c) .NET Foundation
-Copyright 1995-2022 Mark Adler
-Copyright 1995-2024 Mark Adler
-Copyright (c) 2011, Google Inc.
-Copyright (c) 2020 Dan Shechter
-(c) 1997-2005 Sean Eron Anderson
-Copyright (c) 2015 Andrew Gallant
-Copyright (c) 2022, Wojciech Mula
-Copyright (c) 2017 Yoshifumi Kawai
-Copyright (c) 2022, Geoff Langdale
-Copyright (c) 2005-2020 Rich Felker
-Copyright (c) 2012-2021 Yann Collet
-Copyright (c) Microsoft Corporation
-Copyright (c) 2007 James Newton-King
-Copyright (c) 1991-2022 Unicode, Inc.
-Copyright (c) 2013-2017, Alfred Klomp
-Copyright (c) 2018 Nemanja Mijailovic
-Copyright 2012 the V8 project authors
-Copyright (c) 1999 Lucent Technologies
-Copyright (c) 2008-2016, Wojciech Mula
-Copyright (c) 2011-2020 Microsoft Corp
-Copyright (c) 2015-2017, Wojciech Mula
-Copyright (c) 2015-2018, Wojciech Mula
-Copyright (c) 2005-2007, Nick Galbreath
-Copyright (c) 2015 The Chromium Authors
-Copyright (c) 2018 Alexander Chermyanin
-Copyright (c) The Internet Society 1997
-Copyright (c) 2004-2006 Intel Corporation
-Copyright (c) 2011-2015 Intel Corporation
-Copyright (c) 2013-2017, Milosz Krajewski
-Copyright (c) 2016-2017, Matthieu Darbois
-Copyright (c) The Internet Society (2003)
-Copyright (c) .NET Foundation Contributors
-(c) 1995-2024 Jean-loup Gailly and Mark Adler
-Copyright (c) 2020 Mara Bos
-Copyright (c) .NET Foundation and Contributors
-Copyright (c) 2012 - present, Victor Zverovich
-Copyright (c) 2006 Jb Evain (jbevain@gmail.com)
-Copyright (c) 2008-2020 Advanced Micro Devices, Inc.
-Copyright (c) 2019 Microsoft Corporation, Daan Leijen
-Copyright (c) 2011 Novell, Inc (http://www.novell.com)
-Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.com)
-Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors
-Copyright (c) 2014 Ryan Juckett http://www.ryanjuckett.com
-Copyright 1995-2024 Jean-loup Gailly and Mark Adler Qkkbal
-Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
-Portions (c) International Organization for Standardization 1986
-Copyright (c) YEAR W3C(r) (MIT, ERCIM, Keio, Beihang) Disclaimers
-Copyright (c) 2015 THL A29 Limited, a Tencent company, and Milo Yip
-Copyright (c) 1980, 1986, 1993 The Regents of the University of California
-Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 The Regents of the University of California
-Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & Digital Equipment Corporation, Maynard, Mass
-
-The MIT License (MIT)
-
-Copyright (c) .NET Foundation and Contributors
-
-All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-
----------------------------------------------------------
-
----------------------------------------------------------
-
-Microsoft.Windows.ImplementationLibrary 1.0.250325.1 - MIT
-
-
-(c) Microsoft 2025
-Copyright (c) Microsoft
-(c) Microsoft Corporation
-Copyright (c) Microsoft Corporation
-Copyright (c) 2009-2014 by the contributors
-
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---------------------------------------------------------
@@ -2062,9 +714,13 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
---------------------------------------------------------
-WinUIEx 2.5.1 - MIT
+WinUIEx 2.9.0 - MIT
+Copyright (c) Microsoft Corporation
+Copyright 2021-2025 - Morten Nielsen
+Copyright 2021-2025 - Morten Nielsen A
+Copyright (c) 2021-2025 - Morten Nielsen
MIT License
diff --git a/distributions/DistributionInfo.json b/distributions/DistributionInfo.json
index 3e32652..c68dd67 100644
--- a/distributions/DistributionInfo.json
+++ b/distributions/DistributionInfo.json
@@ -151,12 +151,12 @@
"FriendlyName": "AlmaLinux OS 10",
"Default": true,
"Amd64Url": {
- "Url": "https://github.com/AlmaLinux/wsl-images/releases/download/v10.0.20250529.0/AlmaLinux-10.0_x64_20250529.0.wsl",
- "Sha256": "6775711048b86743588da7173ab45ca449b5c50a72fb87635313f059a9813d4b"
+ "Url": "https://github.com/AlmaLinux/wsl-images/releases/download/v10.1.20251124.0/AlmaLinux-10.1_x64_20251124.0.wsl",
+ "Sha256": "24e8fa286a4081979d97e83a227fb89f332bcf731fe4b422679a3b455ab0be37"
},
"Arm64Url": {
- "Url": "https://github.com/AlmaLinux/wsl-images/releases/download/v10.0.20250529.0/AlmaLinux-10.0_ARM64_20250529.0.wsl",
- "Sha256": "bc424bd9f954d36e871d4d874d35bc25e3ea7bdfe48337c30b927ed73a79b2fa"
+ "Url": "https://github.com/AlmaLinux/wsl-images/releases/download/v10.1.20251124.0/AlmaLinux-10.1_ARM64_20251124.0.wsl",
+ "Sha256": "20700a4467214074f8a1a3d4e0e1cad25af36b8127d047ab6d5b4a1355e998b8"
}
}
],
diff --git a/packages.config b/packages.config
index 64d7fbf..2b14616 100644
--- a/packages.config
+++ b/packages.config
@@ -6,15 +6,15 @@
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -27,8 +27,8 @@
-
+
-
+
diff --git a/src/windows/common/CMakeLists.txt b/src/windows/common/CMakeLists.txt
index 4424603..4806e8f 100644
--- a/src/windows/common/CMakeLists.txt
+++ b/src/windows/common/CMakeLists.txt
@@ -86,6 +86,9 @@ set(HEADERS
hcs.hpp
hcs_schema.h
helpers.hpp
+ interop.hpp
+ ExecutionContext.h
+ socket.hpp
hvsocket.hpp
INetworkingEngine.h
interop.hpp
diff --git a/src/windows/common/svccomm.cpp b/src/windows/common/svccomm.cpp
index 4f33f4b..c82c0d8 100644
--- a/src/windows/common/svccomm.cpp
+++ b/src/windows/common/svccomm.cpp
@@ -167,16 +167,13 @@ wsl::windows::common::SvcComm::SvcComm()
};
wsl::shared::retry::RetryWithTimeout(
- [this]() {
- THROW_IF_FAILED(CoCreateInstance(__uuidof(LxssUserSession), nullptr, CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&m_userSession)));
- },
+ [this]() { m_userSession = wil::CoCreateInstance(CLSCTX_LOCAL_SERVER); },
std::chrono::seconds(1),
std::chrono::minutes(1),
retry_pred);
// Query client security interface.
- wil::com_ptr_nothrow clientSecurity;
- THROW_IF_FAILED(m_userSession->QueryInterface(IID_PPV_ARGS(&clientSecurity)));
+ auto clientSecurity = m_userSession.query();
// Get the current proxy blanket settings.
DWORD authnSvc, authzSvc, authnLvl, capabilities;
diff --git a/src/windows/common/wslutil.cpp b/src/windows/common/wslutil.cpp
index fd0f10c..3905f94 100644
--- a/src/windows/common/wslutil.cpp
+++ b/src/windows/common/wslutil.cpp
@@ -624,6 +624,11 @@ std::wstring wsl::windows::common::wslutil::DownloadFileImpl(
void wsl::windows::common::wslutil::EnforceFileLimit(LPCWSTR Path, size_t Limit, const std::function& pred)
{
+ if (Limit <= 0)
+ {
+ return;
+ }
+
std::map files;
for (auto const& e : std::filesystem::directory_iterator{Path})
{
@@ -633,7 +638,7 @@ void wsl::windows::common::wslutil::EnforceFileLimit(LPCWSTR Path, size_t Limit,
}
}
- if (Limit < 0 || files.size() < Limit)
+ if (files.size() < Limit)
{
return;
}
diff --git a/src/windows/common/wslutil.h b/src/windows/common/wslutil.h
index 34a6d71..99af59b 100644
--- a/src/windows/common/wslutil.h
+++ b/src/windows/common/wslutil.h
@@ -79,6 +79,22 @@ void CoInitializeSecurity();
void ConfigureCrt();
+///
+/// Creates a COM server with user impersonation.
+///
+template
+wil::com_ptr_t CreateComServerAsUser(_In_ REFCLSID RefClsId, _In_ HANDLE UserToken)
+{
+ auto revert = wil::impersonate_token(UserToken);
+ return wil::CoCreateInstance(RefClsId, (CLSCTX_LOCAL_SERVER | CLSCTX_ENABLE_CLOAKING | CLSCTX_ENABLE_AAA));
+}
+
+template
+wil::com_ptr_t CreateComServerAsUser(_In_ HANDLE UserToken)
+{
+ return CreateComServerAsUser(__uuidof(Class), UserToken);
+}
+
std::wstring ConstructPipePath(_In_ std::wstring_view PipeName);
GUID CreateV5Uuid(const GUID& namespaceGuid, const std::span name);
diff --git a/src/windows/inc/comservicehelper.h b/src/windows/inc/comservicehelper.h
index 9c412db..227cf3a 100644
--- a/src/windows/inc/comservicehelper.h
+++ b/src/windows/inc/comservicehelper.h
@@ -77,7 +77,7 @@ namespace Windows { namespace Internal {
// Tell COM how to mask fatal exceptions.
if (ownProcess)
{
- Microsoft::WRL::ComPtr pIGLB;
+ wil::com_ptr pIGLB;
RETURN_IF_FAILED(CoCreateInstance(CLSID_GlobalOptions, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pIGLB)));
RETURN_IF_FAILED(pIGLB->Set(COMGLB_EXCEPTION_HANDLING, TExceptionPolicy));
}
@@ -294,7 +294,7 @@ namespace Windows { namespace Internal {
bool m_addedModuleReference = false;
// COM callback object to support unloading shared-process services
- Microsoft::WRL::ComPtr m_icc;
+ wil::com_ptr m_icc;
// COM Server descriptor
ServerDescriptor m_serverDescriptor{};
diff --git a/src/windows/service/exe/CMakeLists.txt b/src/windows/service/exe/CMakeLists.txt
index 636fa25..03a7d86 100644
--- a/src/windows/service/exe/CMakeLists.txt
+++ b/src/windows/service/exe/CMakeLists.txt
@@ -12,6 +12,7 @@ set(SOURCES
BridgedNetworking.cpp
GnsPortTrackerChannel.cpp
GnsRpcServer.cpp
+ GuestDeviceManager.cpp
GuestTelemetryLogger.cpp
Lifetime.cpp
LxssConsoleManager.cpp
@@ -40,6 +41,7 @@ set(HEADERS
BridgedNetworking.h
GnsPortTrackerChannel.h
GnsRpcServer.h
+ GuestDeviceManager.h
GuestTelemetryLogger.h
IMirroredNetworkManager.h
Lifetime.h
diff --git a/src/windows/service/exe/GuestDeviceManager.cpp b/src/windows/service/exe/GuestDeviceManager.cpp
new file mode 100644
index 0000000..73426ab
--- /dev/null
+++ b/src/windows/service/exe/GuestDeviceManager.cpp
@@ -0,0 +1,149 @@
+// Copyright (C) Microsoft Corporation. All rights reserved.
+
+#include "precomp.h"
+#include "GuestDeviceManager.h"
+#include "DeviceHostProxy.h"
+
+GuestDeviceManager::GuestDeviceManager(_In_ const std::wstring& machineId, _In_ const GUID& runtimeId) :
+ m_machineId(machineId), m_deviceHostSupport(wil::MakeOrThrow(machineId, runtimeId))
+{
+}
+
+_Requires_lock_not_held_(m_lock)
+GUID GuestDeviceManager::AddGuestDevice(
+ _In_ const GUID& DeviceId, _In_ const GUID& ImplementationClsid, _In_ PCWSTR AccessName, _In_opt_ PCWSTR Options, _In_ PCWSTR Path, _In_ UINT32 Flags, _In_ HANDLE UserToken)
+{
+ auto guestDeviceLock = m_lock.lock_exclusive();
+ return AddHdvShareWithOptions(DeviceId, ImplementationClsid, AccessName, Options, Path, Flags, UserToken);
+}
+
+_Requires_lock_held_(m_lock)
+GUID GuestDeviceManager::AddHdvShareWithOptions(
+ _In_ const GUID& DeviceId, _In_ const GUID& ImplementationClsid, _In_ PCWSTR AccessName, _In_opt_ PCWSTR Options, _In_ PCWSTR Path, _In_ UINT32 Flags, _In_ HANDLE UserToken)
+{
+ wil::com_ptr server;
+
+ // Options are appended to the name with a semi-colon separator.
+ // "name;key1=value1;key2=value2"
+ // The AddSharePath implementation is responsible for separating them out and interpreting them.
+ std::wstring nameWithOptions{AccessName};
+ if (ARGUMENT_PRESENT(Options))
+ {
+ nameWithOptions += L";";
+ nameWithOptions += Options;
+ }
+
+ {
+ auto revert = wil::impersonate_token(UserToken);
+
+ server = GetRemoteFileSystem(ImplementationClsid, c_defaultDeviceTag);
+ if (!server)
+ {
+ server = wil::CoCreateInstance(ImplementationClsid, (CLSCTX_LOCAL_SERVER | CLSCTX_ENABLE_CLOAKING | CLSCTX_ENABLE_AAA));
+ AddRemoteFileSystem(ImplementationClsid, c_defaultDeviceTag.c_str(), server);
+ }
+
+ THROW_IF_FAILED(server->AddSharePath(nameWithOptions.c_str(), Path, Flags));
+ }
+
+ // This requires more privileges than the user may have, so impersonation is disabled.
+ return AddNewDevice(DeviceId, server, AccessName);
+}
+
+GUID GuestDeviceManager::AddNewDevice(_In_ const GUID& deviceId, _In_ const wil::com_ptr& server, _In_ PCWSTR tag)
+{
+ THROW_HR_IF(E_NOT_VALID_STATE, !m_deviceHostSupport);
+ return m_deviceHostSupport->AddNewDevice(deviceId, server, tag);
+}
+
+void GuestDeviceManager::AddRemoteFileSystem(_In_ REFCLSID clsid, _In_ PCWSTR tag, _In_ const wil::com_ptr& server)
+{
+ THROW_HR_IF(E_NOT_VALID_STATE, !m_deviceHostSupport);
+ m_deviceHostSupport->AddRemoteFileSystem(clsid, tag, server);
+}
+
+void GuestDeviceManager::AddSharedMemoryDevice(_In_ const GUID& ImplementationClsid, _In_ PCWSTR Tag, _In_ PCWSTR Path, _In_ UINT32 SizeMb, _In_ HANDLE UserToken)
+{
+ auto guestDeviceLock = m_lock.lock_exclusive();
+ auto objectLifetime = CreateSectionObjectRoot(Path, UserToken);
+
+ // For virtiofs hdv, the flags parameter has been overloaded. Flags are placed in the lower
+ // 16 bits, while the shared memory size in megabytes are placed in the upper 16 bits.
+ static constexpr auto VIRTIO_FS_FLAGS_SHMEM_SIZE_SHIFT = 16;
+ UINT32 flags = (SizeMb << VIRTIO_FS_FLAGS_SHMEM_SIZE_SHIFT);
+ WI_SetFlag(flags, VIRTIO_FS_FLAGS_TYPE_SECTIONS);
+ (void)AddHdvShareWithOptions(VIRTIO_VIRTIOFS_DEVICE_ID, ImplementationClsid, Tag, {}, objectLifetime.Path.c_str(), flags, UserToken);
+ m_objectDirectories.emplace_back(std::move(objectLifetime));
+}
+
+GuestDeviceManager::DirectoryObjectLifetime GuestDeviceManager::CreateSectionObjectRoot(_In_ std::wstring_view RelativeRootPath, _In_ HANDLE UserToken) const
+{
+ auto revert = wil::impersonate_token(UserToken);
+ DWORD sessionId;
+ DWORD bytesWritten;
+ THROW_LAST_ERROR_IF(!GetTokenInformation(GetCurrentThreadToken(), TokenSessionId, &sessionId, sizeof(sessionId), &bytesWritten));
+
+ // /Sessions/1/BaseNamedObjects/WSL//
+ std::wstringstream sectionPathBuilder;
+ sectionPathBuilder << L"\\Sessions\\" << sessionId << L"\\BaseNamedObjects" << L"\\WSL\\" << m_machineId << L"\\" << RelativeRootPath;
+ auto sectionPath = sectionPathBuilder.str();
+
+ UNICODE_STRING ntPath{};
+ OBJECT_ATTRIBUTES attributes{};
+ attributes.Length = sizeof(OBJECT_ATTRIBUTES);
+ attributes.ObjectName = &ntPath;
+ std::vector directoryHierarchy;
+ auto remainingPath = std::wstring_view(sectionPath.data(), sectionPath.length());
+ while (remainingPath.length() > 0)
+ {
+ // Find the next path substring, ignoring the root path backslash.
+ auto nextDir = remainingPath;
+ const auto separatorPos = nextDir.find(L"\\", remainingPath[0] == L'\\' ? 1 : 0);
+ if (separatorPos != std::wstring_view::npos)
+ {
+ nextDir = nextDir.substr(0, separatorPos);
+ remainingPath = remainingPath.substr(separatorPos + 1, std::wstring_view::npos);
+
+ // Skip concurrent backslashes.
+ while (remainingPath.length() > 0 && remainingPath[0] == L'\\')
+ {
+ remainingPath = remainingPath.substr(1, std::wstring_view::npos);
+ }
+ }
+ else
+ {
+ remainingPath = remainingPath.substr(remainingPath.length(), std::wstring_view::npos);
+ }
+
+ attributes.RootDirectory = directoryHierarchy.size() > 0 ? directoryHierarchy.back().get() : nullptr;
+ ntPath.Buffer = const_cast(nextDir.data());
+ ntPath.Length = sizeof(WCHAR) * gsl::narrow_cast(nextDir.length());
+ ntPath.MaximumLength = ntPath.Length;
+ wil::unique_handle nextHandle;
+ NTSTATUS status = ZwCreateDirectoryObject(&nextHandle, DIRECTORY_ALL_ACCESS, &attributes);
+ if (status == STATUS_OBJECT_NAME_COLLISION)
+ {
+ status = NtOpenDirectoryObject(&nextHandle, MAXIMUM_ALLOWED, &attributes);
+ }
+ THROW_IF_NTSTATUS_FAILED(status);
+ directoryHierarchy.emplace_back(std::move(nextHandle));
+ }
+
+ return {std::move(sectionPath), std::move(directoryHierarchy)};
+}
+
+wil::com_ptr GuestDeviceManager::GetRemoteFileSystem(_In_ REFCLSID clsid, _In_ std::wstring_view tag)
+{
+ THROW_HR_IF(E_NOT_VALID_STATE, !m_deviceHostSupport);
+ return m_deviceHostSupport->GetRemoteFileSystem(clsid, tag);
+}
+
+void GuestDeviceManager::Shutdown()
+try
+{
+ if (m_deviceHostSupport)
+ {
+ m_deviceHostSupport->Shutdown();
+ }
+}
+CATCH_LOG()
diff --git a/src/windows/service/exe/GuestDeviceManager.h b/src/windows/service/exe/GuestDeviceManager.h
new file mode 100644
index 0000000..f1afa99
--- /dev/null
+++ b/src/windows/service/exe/GuestDeviceManager.h
@@ -0,0 +1,72 @@
+// Copyright (C) Microsoft Corporation. All rights reserved.
+
+#pragma once
+
+#include "DeviceHostProxy.h"
+
+// Flags for virtiofs vdev device creation.
+#define VIRTIO_FS_FLAGS_TYPE_FILES 0x8000
+#define VIRTIO_FS_FLAGS_TYPE_SECTIONS 0x4000
+
+// {872270E1-A899-4AF6-B454-7193634435AD}
+DEFINE_GUID(VIRTIO_VIRTIOFS_DEVICE_ID, 0x872270E1, 0xA899, 0x4AF6, 0xB4, 0x54, 0x71, 0x93, 0x63, 0x44, 0x35, 0xAD);
+
+// {ABB755FC-1B86-4255-83E2-E5787ABCF6C2}
+DEFINE_GUID(VIRTIO_PMEM_CLASS_ID, 0xABB755FC, 0x1B86, 0x4255, 0x83, 0xe2, 0xe5, 0x78, 0x7a, 0xbc, 0xf6, 0xc2);
+
+inline const std::wstring c_defaultDeviceTag = L"default";
+
+//
+// Provides synchronized access to guest device operations.
+//
+class GuestDeviceManager
+{
+public:
+ GuestDeviceManager(_In_ const std::wstring& machineId, _In_ const GUID& runtimeId);
+
+ _Requires_lock_not_held_(m_lock)
+ GUID AddGuestDevice(
+ _In_ const GUID& DeviceId,
+ _In_ const GUID& ImplementationClsid,
+ _In_ PCWSTR AccessName,
+ _In_opt_ PCWSTR Options,
+ _In_ PCWSTR Path,
+ _In_ UINT32 Flags,
+ _In_ HANDLE UserToken);
+
+ GUID AddNewDevice(_In_ const GUID& deviceId, _In_ const wil::com_ptr& server, _In_ PCWSTR tag);
+
+ void AddRemoteFileSystem(_In_ REFCLSID clsid, _In_ PCWSTR tag, _In_ const wil::com_ptr& server);
+
+ void AddSharedMemoryDevice(_In_ const GUID& ImplementationClsid, _In_ PCWSTR Tag, _In_ PCWSTR Path, _In_ UINT32 SizeMb, _In_ HANDLE UserToken);
+
+ wil::com_ptr GetRemoteFileSystem(_In_ REFCLSID clsid, _In_ std::wstring_view tag);
+
+ void Shutdown();
+
+private:
+ _Requires_lock_held_(m_lock)
+ GUID AddHdvShareWithOptions(
+ _In_ const GUID& DeviceId,
+ _In_ const GUID& ImplementationClsid,
+ _In_ PCWSTR AccessName,
+ _In_opt_ PCWSTR Options,
+ _In_ PCWSTR Path,
+ _In_ UINT32 Flags,
+ _In_ HANDLE UserToken);
+
+ struct DirectoryObjectLifetime
+ {
+ std::wstring Path;
+ // Directory objects are temporary, even if they have children, so need to keep
+ // any created handles open in order for the directory to remain accessible.
+ std::vector HierarchyLifetimes;
+ };
+
+ DirectoryObjectLifetime CreateSectionObjectRoot(_In_ std::wstring_view RelativeRootPath, _In_ HANDLE UserToken) const;
+
+ wil::srwlock m_lock;
+ std::wstring m_machineId;
+ wil::com_ptr m_deviceHostSupport;
+ _Guarded_by_(m_lock) std::vector m_objectDirectories;
+};
diff --git a/src/windows/service/exe/LxssIpTables.cpp b/src/windows/service/exe/LxssIpTables.cpp
index afd1cc0..2b7a143 100644
--- a/src/windows/service/exe/LxssIpTables.cpp
+++ b/src/windows/service/exe/LxssIpTables.cpp
@@ -335,7 +335,7 @@ const std::wstring LxssNetworkingFirewall::s_FriendlyNamePrefix(L"WSLRULE_177744
LxssNetworkingFirewall::LxssNetworkingFirewall()
{
- THROW_IF_FAILED(::CoCreateInstance(__uuidof(NetFwPolicy2), NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&m_firewall)));
+ m_firewall = wil::CoCreateInstance(CLSCTX_INPROC_SERVER);
}
void LxssNetworkingFirewall::CopyPartialArray(SAFEARRAY* Destination, SAFEARRAY* Source, ULONG DestinationIndexStart, ULONG SourceIndexStart, ULONG ElementsToCopy)
@@ -388,8 +388,7 @@ void LxssNetworkingFirewall::CopyPartialArray(SAFEARRAY* Destination, SAFEARRAY*
std::wstring LxssNetworkingFirewall::AddPortRule(const IP_ADDRESS_PREFIX& Address) const
{
- Microsoft::WRL::ComPtr newRule;
- THROW_IF_FAILED(::CoCreateInstance(__uuidof(NetFwRule), NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&newRule)));
+ auto newRule = wil::CoCreateInstance(CLSCTX_INPROC_SERVER);
// Open a port via the firewall by creating a rule that specifies the local
// address and the local port to allow. Currently this rule only applies to
@@ -412,9 +411,9 @@ std::wstring LxssNetworkingFirewall::AddPortRule(const IP_ADDRESS_PREFIX& Addres
THROW_IF_FAILED(newRule->put_Description(s_DefaultRuleDescription.get()));
THROW_IF_FAILED(newRule->put_Enabled(VARIANT_TRUE));
// Add the rule to the existing set.
- Microsoft::WRL::ComPtr rules;
+ wil::com_ptr rules;
THROW_IF_FAILED(m_firewall->get_Rules(&rules));
- THROW_IF_FAILED(rules->Add(newRule.Get()));
+ THROW_IF_FAILED(rules->Add(newRule.get()));
// Return the unique rule name to the caller.
return generatedName;
}
@@ -423,12 +422,11 @@ void LxssNetworkingFirewall::CleanupRemnants()
{
auto firewall = std::make_shared();
THROW_HR_IF(E_OUTOFMEMORY, !firewall);
- Microsoft::WRL::ComPtr rules;
+ wil::com_ptr rules;
THROW_IF_FAILED(firewall->m_firewall->get_Rules(&rules));
- Microsoft::WRL::ComPtr enumInterface;
- THROW_IF_FAILED(rules->get__NewEnum(enumInterface.GetAddressOf()));
- Microsoft::WRL::ComPtr rulesEnum;
- THROW_IF_FAILED(enumInterface.As(&rulesEnum));
+ wil::com_ptr enumInterface;
+ THROW_IF_FAILED(rules->get__NewEnum(enumInterface.addressof()));
+ auto rulesEnum = enumInterface.query();
// Find any rules with the unique WSL prefix and destroy them.
for (;;)
{
@@ -440,7 +438,7 @@ void LxssNetworkingFirewall::CleanupRemnants()
break;
}
- Microsoft::WRL::ComPtr nextRule;
+ wil::com_ptr nextRule;
THROW_IF_FAILED(next.pdispVal->QueryInterface(IID_PPV_ARGS(&nextRule)));
wil::unique_bstr nextRuleName;
THROW_IF_FAILED(nextRule->get_Name(nextRuleName.addressof()));
@@ -558,7 +556,7 @@ void LxssNetworkingFirewall::RemoveExcludedAdapter(const std::wstring& AdapterNa
void LxssNetworkingFirewall::RemovePortRule(const std::wstring& RuleName) const
{
- Microsoft::WRL::ComPtr rules;
+ wil::com_ptr rules;
THROW_IF_FAILED(m_firewall->get_Rules(&rules));
THROW_IF_FAILED(rules->Remove(wil::make_bstr_failfast(RuleName.c_str()).get()));
}
@@ -572,8 +570,7 @@ LxssNetworkingFirewallPort::LxssNetworkingFirewallPort(const std::shared_ptr& Firewall, const Microsoft::WRL::ComPtr& Existing) :
+LxssNetworkingFirewallPort::LxssNetworkingFirewallPort(const std::shared_ptr& Firewall, const wil::com_ptr& Existing) :
m_firewall(Firewall)
{
wil::unique_bstr ruleName;
diff --git a/src/windows/service/exe/LxssIpTables.h b/src/windows/service/exe/LxssIpTables.h
index fca26e3..0429d9a 100644
--- a/src/windows/service/exe/LxssIpTables.h
+++ b/src/windows/service/exe/LxssIpTables.h
@@ -262,7 +262,7 @@ private:
///
/// COM firewall instance.
///
- Microsoft::WRL::ComPtr m_firewall;
+ wil::com_ptr m_firewall;
///
/// Lock to protect class members.
@@ -295,7 +295,7 @@ public:
///
/// Constructor to take ownership of an existing rule.
///
- LxssNetworkingFirewallPort(const std::shared_ptr& Firewall, const Microsoft::WRL::ComPtr& Existing);
+ LxssNetworkingFirewallPort(const std::shared_ptr& Firewall, const wil::com_ptr& Existing);
///
/// Destructor.
diff --git a/src/windows/service/exe/LxssUserSession.cpp b/src/windows/service/exe/LxssUserSession.cpp
index 2e5611c..1471b6b 100644
--- a/src/windows/service/exe/LxssUserSession.cpp
+++ b/src/windows/service/exe/LxssUserSession.cpp
@@ -2674,8 +2674,7 @@ try
THROW_IF_FAILED(shellLink->SetArguments(commandLine.c_str()));
THROW_IF_FAILED(shellLink->SetIconLocation(ShortcutIcon, 0));
- Microsoft::WRL::ComPtr storage;
- THROW_IF_FAILED(shellLink->QueryInterface(IID_IPersistFile, &storage));
+ auto storage = shellLink.query();
THROW_IF_FAILED(storage->Save(shortcutPath.c_str(), true));
registration.Write(Property::ShortcutPath, shortcutPath.c_str());
diff --git a/src/windows/service/exe/VirtioNetworking.cpp b/src/windows/service/exe/VirtioNetworking.cpp
index 80766d7..cb69244 100644
--- a/src/windows/service/exe/VirtioNetworking.cpp
+++ b/src/windows/service/exe/VirtioNetworking.cpp
@@ -2,6 +2,7 @@
#include "precomp.h"
#include "VirtioNetworking.h"
+#include "GuestDeviceManager.h"
#include "Stringify.h"
#include "stringshared.h"
@@ -12,34 +13,18 @@ using wsl::core::VirtioNetworking;
static constexpr auto c_loopbackDeviceName = TEXT(LX_INIT_LOOPBACK_DEVICE_NAME);
-VirtioNetworking::VirtioNetworking(GnsChannel&& gnsChannel, const Config& config) :
- m_gnsChannel(std::move(gnsChannel)), m_config(config)
+VirtioNetworking::VirtioNetworking(
+ GnsChannel&& gnsChannel, bool enableLocalhostRelay, std::shared_ptr guestDeviceManager, wil::shared_handle userToken) :
+ m_guestDeviceManager(std::move(guestDeviceManager)),
+ m_userToken(std::move(userToken)),
+ m_gnsChannel(std::move(gnsChannel)),
+ m_enableLocalhostRelay(enableLocalhostRelay)
{
}
-VirtioNetworking& VirtioNetworking::OnAddGuestDevice(const AddGuestDeviceRoutine& addGuestDeviceRoutine)
-{
- m_addGuestDeviceRoutine = addGuestDeviceRoutine;
- return *this;
-}
-
-VirtioNetworking& VirtioNetworking::OnModifyOpenPorts(const ModifyOpenPortsCallback& modifyOpenPortsCallback)
-{
- m_modifyOpenPortsCallback = modifyOpenPortsCallback;
- return *this;
-}
-
-VirtioNetworking& VirtioNetworking::OnGuestInterfaceStateChanged(const GuestInterfaceStateChangeCallback& guestInterfaceStateChangedCallback)
-{
- m_guestInterfaceStateChangeCallback = guestInterfaceStateChangedCallback;
- return *this;
-}
-
void VirtioNetworking::Initialize()
try
{
- THROW_HR_IF(E_NOT_SET, !m_addGuestDeviceRoutine || !m_modifyOpenPortsCallback || !m_guestInterfaceStateChangeCallback);
-
m_networkSettings = GetHostEndpointSettings();
// TODO: Determine gateway MAC address
@@ -83,11 +68,12 @@ try
device_options << L"nameservers=" << dns_servers;
}
- // Add virtio net adapter to guest
- m_adapterId = (*m_addGuestDeviceRoutine)(c_virtioNetworkClsid, c_virtioNetworkDeviceId, L"eth0", device_options.str().c_str());
-
auto lock = m_lock.lock_exclusive();
+ // Add virtio net adapter to guest
+ m_adapterId = m_guestDeviceManager->AddGuestDevice(
+ c_virtioNetworkDeviceId, c_virtioNetworkClsid, L"eth0", nullptr, device_options.str().c_str(), 0, m_userToken.get());
+
hns::HNSEndpoint endpointProperties;
endpointProperties.ID = m_adapterId;
endpointProperties.IPAddress = m_networkSettings->PreferredIpAddress.AddressString;
@@ -121,7 +107,7 @@ try
UpdateDns(std::move(dnsSettings));
}
- if (m_config.EnableLocalhostRelay)
+ if (m_enableLocalhostRelay)
{
SetupLoopbackDevice();
}
@@ -132,8 +118,14 @@ CATCH_LOG()
void VirtioNetworking::SetupLoopbackDevice()
{
- m_localhostAdapterId = (*m_addGuestDeviceRoutine)(
- c_virtioNetworkClsid, c_virtioNetworkDeviceId, c_loopbackDeviceName, L"client_ip=127.0.0.1;client_mac=00:11:22:33:44:55");
+ m_localhostAdapterId = m_guestDeviceManager->AddGuestDevice(
+ c_virtioNetworkDeviceId,
+ c_virtioNetworkClsid,
+ c_loopbackDeviceName,
+ nullptr,
+ L"client_ip=127.0.0.1;client_mac=00:11:22:33:44:55",
+ 0,
+ m_userToken.get());
hns::HNSEndpoint endpointProperties;
endpointProperties.ID = m_localhostAdapterId;
@@ -162,7 +154,7 @@ void VirtioNetworking::StartPortTracker(wil::unique_socket&& socket)
m_gnsPortTrackerChannel.emplace(
std::move(socket),
[&](const SOCKADDR_INET& addr, int protocol, bool allocate) { return HandlePortNotification(addr, protocol, allocate); },
- [&](_In_ const std::string& interfaceName, _In_ bool up) { (*m_guestInterfaceStateChangeCallback)(interfaceName, up); });
+ [](const std::string&, bool) {}); // TODO: reconsider if InterfaceStateCallback is needed.
}
HRESULT VirtioNetworking::HandlePortNotification(const SOCKADDR_INET& addr, int protocol, bool allocate) const noexcept
@@ -181,7 +173,7 @@ HRESULT VirtioNetworking::HandlePortNotification(const SOCKADDR_INET& addr, int
}
}
- if (m_config.EnableLocalhostRelay && (unspecified || loopback))
+ if (m_enableLocalhostRelay && (unspecified || loopback))
{
SOCKADDR_INET localAddr = addr;
if (!loopback)
@@ -196,21 +188,65 @@ HRESULT VirtioNetworking::HandlePortNotification(const SOCKADDR_INET& addr, int
localAddr.Ipv6.sin6_port = addr.Ipv6.sin6_port;
}
}
- result = (*m_modifyOpenPortsCallback)(c_virtioNetworkClsid, c_loopbackDeviceName, localAddr, protocol, allocate);
+ result = ModifyOpenPorts(c_virtioNetworkClsid, c_loopbackDeviceName, localAddr, protocol, allocate);
LOG_HR_IF_MSG(E_FAIL, result != S_OK, "Failure adding localhost relay port %d", localAddr.Ipv4.sin_port);
}
+
if (!loopback)
{
- const int localResult = (*m_modifyOpenPortsCallback)(c_virtioNetworkClsid, L"eth0", addr, protocol, allocate);
+ const int localResult = ModifyOpenPorts(c_virtioNetworkClsid, L"eth0", addr, protocol, allocate);
LOG_HR_IF_MSG(E_FAIL, localResult != S_OK, "Failure adding relay port %d", addr.Ipv4.sin_port);
if (result == 0)
{
result = localResult;
}
}
+
return result;
}
+int VirtioNetworking::ModifyOpenPorts(_In_ const GUID& clsid, _In_ PCWSTR tag, _In_ const SOCKADDR_INET& addr, _In_ int protocol, _In_ bool isOpen) const
+{
+ if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP)
+ {
+ LOG_HR_MSG(HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED), "Unsupported bind protocol %d", protocol);
+ return 0;
+ }
+ else if (addr.si_family == AF_INET6)
+ {
+ // The virtio net adapter does not yet support IPv6 packets, so any traffic would arrive via
+ // IPv4. If the caller wants IPv4 they will also likely listen on an IPv4 address, which will
+ // be handled as a separate callback to this same code.
+ return 0;
+ }
+
+ auto lock = m_lock.lock_exclusive();
+ const auto server = m_guestDeviceManager->GetRemoteFileSystem(clsid, c_defaultDeviceTag);
+ if (server)
+ {
+ std::wstring portString = std::format(L"tag={};port_number={}", tag, addr.Ipv4.sin_port);
+ if (protocol == IPPROTO_UDP)
+ {
+ portString += L";udp";
+ }
+
+ if (!isOpen)
+ {
+ portString += L";allocate=false";
+ }
+ else
+ {
+ wchar_t addrStr[16]; // "000.000.000.000" + null terminator
+ RtlIpv4AddressToStringW(&addr.Ipv4.sin_addr, addrStr);
+ portString += std::format(L";listen_addr={}", addrStr);
+ }
+
+ LOG_IF_FAILED(server->AddShare(portString.c_str(), nullptr, 0));
+ }
+
+ return 0;
+}
+
void NETIOAPI_API_ VirtioNetworking::OnNetworkConnectivityChange(PVOID context, NL_NETWORK_CONNECTIVITY_HINT hint)
{
static_cast(context)->RefreshGuestConnection(hint);
diff --git a/src/windows/service/exe/VirtioNetworking.h b/src/windows/service/exe/VirtioNetworking.h
index 617195e..629afb2 100644
--- a/src/windows/service/exe/VirtioNetworking.h
+++ b/src/windows/service/exe/VirtioNetworking.h
@@ -6,23 +6,16 @@
#include "GnsChannel.h"
#include "WslCoreHostDnsInfo.h"
#include "GnsPortTrackerChannel.h"
+#include "GuestDeviceManager.h"
namespace wsl::core {
-using AddGuestDeviceRoutine = std::function;
-using ModifyOpenPortsCallback = std::function;
-using GuestInterfaceStateChangeCallback = std::function;
-
class VirtioNetworking : public INetworkingEngine
{
public:
- VirtioNetworking(GnsChannel&& gnsChannel, const Config& config);
+ VirtioNetworking(GnsChannel&& gnsChannel, bool enableLocalhostRelay, std::shared_ptr guestDeviceManager, wil::shared_handle userToken);
~VirtioNetworking() = default;
- VirtioNetworking& OnAddGuestDevice(const AddGuestDeviceRoutine& addGuestDeviceRoutine);
- VirtioNetworking& OnModifyOpenPorts(const ModifyOpenPortsCallback& modifyOpenPortsCallback);
- VirtioNetworking& OnGuestInterfaceStateChanged(const GuestInterfaceStateChangeCallback& guestInterfaceStateChangedCallback);
-
// Note: This class cannot be moved because m_networkNotifyHandle captures a 'this' pointer.
VirtioNetworking(const VirtioNetworking&) = delete;
VirtioNetworking(VirtioNetworking&&) = delete;
@@ -42,6 +35,7 @@ private:
static std::optional FindVirtioInterfaceLuid(const SOCKADDR_INET& virtioAddress, const NL_NETWORK_CONNECTIVITY_HINT& currentConnectivityHint);
HRESULT HandlePortNotification(const SOCKADDR_INET& addr, int protocol, bool allocate) const noexcept;
+ int ModifyOpenPorts(_In_ const GUID& clsid, _In_ PCWSTR tag, _In_ const SOCKADDR_INET& addr, _In_ int protocol, _In_ bool isOpen) const;
void RefreshGuestConnection(NL_NETWORK_CONNECTIVITY_HINT hint) noexcept;
void SetupLoopbackDevice();
void UpdateDns(wsl::shared::hns::DNS&& dnsSettings);
@@ -49,17 +43,14 @@ private:
mutable wil::srwlock m_lock;
- std::optional m_addGuestDeviceRoutine;
+ std::shared_ptr m_guestDeviceManager;
+ wil::shared_handle m_userToken;
GnsChannel m_gnsChannel;
std::optional m_gnsPortTrackerChannel;
std::shared_ptr m_networkSettings;
- const Config& m_config;
+ bool m_enableLocalhostRelay;
GUID m_localhostAdapterId;
GUID m_adapterId;
- std::optional m_connectivityLevel;
- std::optional m_connectivityCost;
- std::optional m_modifyOpenPortsCallback;
- std::optional m_guestInterfaceStateChangeCallback;
std::optional m_interfaceLuid;
ULONG m_networkMtu = 0;
diff --git a/src/windows/service/exe/WslCoreVm.cpp b/src/windows/service/exe/WslCoreVm.cpp
index 9737a5a..c2e61c4 100644
--- a/src/windows/service/exe/WslCoreVm.cpp
+++ b/src/windows/service/exe/WslCoreVm.cpp
@@ -39,27 +39,16 @@ using namespace std::string_literals;
// Start of unaddressable memory if guest only supports the minimum 36-bit addressing.
#define MAX_36_BIT_PAGE_IN_MB (0x1000000000 / _1MB)
-// This device type is implemented by the external virtiofs vdev.
-// {872270E1-A899-4AF6-B454-7193634435AD}
-DEFINE_GUID(VIRTIO_VIRTIOFS_DEVICE_ID, 0x872270E1, 0xA899, 0x4AF6, 0xB4, 0x54, 0x71, 0x93, 0x63, 0x44, 0x35, 0xAD);
-
// This device type is implemented by the external virtio-pmem vdev.
// {EDBB24BB-5E19-40F4-8A0F-8224313064FD}
DEFINE_GUID(VIRTIO_PMEM_DEVICE_ID, 0xEDBB24BB, 0x5E19, 0x40F4, 0x8A, 0x0F, 0x82, 0x24, 0x31, 0x30, 0x64, 0xFD);
-// Flags for virtiofs vdev device creation.
-#define VIRTIO_FS_FLAGS_TYPE_FILES 0x8000
-#define VIRTIO_FS_FLAGS_TYPE_SECTIONS 0x4000
-
#define WSLG_SHARED_MEMORY_SIZE_MB 8192
#define PAGE_SIZE 0x1000
static constexpr size_t c_bootEntropy = 0x1000;
static constexpr auto c_localDevicesKey = L"SOFTWARE\\Microsoft\\Terminal Server Client\\LocalDevices";
-// {ABB755FC-1B86-4255-83E2-E5787ABCF6C2}
-static constexpr GUID c_pmemClassId = {0xABB755FC, 0x1B86, 0x4255, {0x83, 0xe2, 0xe5, 0x78, 0x7a, 0xbc, 0xf6, 0xc2}};
-
#define LXSS_ENABLE_GUI_APPS() (m_vmConfig.EnableGuiApps && (m_systemDistroDeviceId != ULONG_MAX))
using namespace wsl::windows::common;
@@ -70,8 +59,6 @@ using wsl::shared::Localization;
using wsl::windows::common::Context;
using wsl::windows::common::ExecutionContext;
-const std::wstring WslCoreVm::c_defaultTag = L"default"s;
-
namespace {
INT64
RequiredExtraMmioSpaceForPmemFileInMb(_In_ PCWSTR FilePath)
@@ -335,7 +322,8 @@ void WslCoreVm::Initialize(const GUID& VmId, const wil::shared_handle& UserToken
m_runtimeId = wsl::windows::common::hcs::GetRuntimeId(m_system.get());
WI_ASSERT(IsEqualGUID(VmId, m_runtimeId));
- m_deviceHostSupport = wil::MakeOrThrow(m_machineId, m_runtimeId);
+ // Initialize the guest device manager.
+ m_guestDeviceManager = std::make_shared(m_machineId, m_runtimeId);
// Create a socket listening for connections from mini_init.
m_listenSocket = wsl::windows::common::hvsocket::Listen(m_runtimeId, LX_INIT_UTILITY_VM_INIT_PORT);
@@ -462,7 +450,7 @@ void WslCoreVm::Initialize(const GUID& VmId, const wil::shared_handle& UserToken
break;
case LxMiniInitMountDeviceTypePmem:
- m_systemDistroDeviceId = MountFileAsPersistentMemory(c_pmemClassId, m_vmConfig.SystemDistroPath.c_str(), true);
+ m_systemDistroDeviceId = MountFileAsPersistentMemory(m_vmConfig.SystemDistroPath.c_str(), true);
break;
default:
@@ -600,55 +588,8 @@ void WslCoreVm::Initialize(const GUID& VmId, const wil::shared_handle& UserToken
}
else if (m_vmConfig.NetworkingMode == NetworkingMode::VirtioProxy)
{
- auto virtioNetworkingEngine = std::make_unique(std::move(gnsChannel), m_vmConfig);
- virtioNetworkingEngine->OnAddGuestDevice([&](const GUID& Clsid, const GUID& DeviceId, PCWSTR Tag, PCWSTR Options) {
- auto guestDeviceLock = m_guestDeviceLock.lock_exclusive();
- return AddHdvShareWithOptions(DeviceId, Clsid, Tag, {}, Options, 0, m_userToken.get());
- });
-
- virtioNetworkingEngine->OnModifyOpenPorts([&](const GUID& Clsid, PCWSTR Tag, const SOCKADDR_INET& addr, int protocol, bool isOpen) {
- if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP)
- {
- LOG_HR_MSG(HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED), "Unsupported bind protocol %d", protocol);
- return 0;
- }
- else if (addr.si_family == AF_INET6)
- {
- // The virtio net adapter does not yet support IPv6 packets, so any traffic would arrive via
- // IPv4. If the caller wants IPv4 they will also likely listen on an IPv4 address, which will
- // be handled as a separate callback to this same code.
- return 0;
- }
-
- auto guestDeviceLock = m_guestDeviceLock.lock_exclusive();
- const auto server = m_deviceHostSupport->GetRemoteFileSystem(Clsid, c_defaultTag);
- if (server)
- {
- std::wstring portString(L"tag=");
- portString += Tag;
- portString += L";port_number=";
- portString += std::to_wstring(addr.Ipv4.sin_port);
- if (protocol == IPPROTO_UDP)
- {
- portString += L";udp";
- }
- if (!isOpen)
- {
- portString += L";allocate=false";
- }
- else
- {
- std::wstring addrStr(L"000.000.000.000\0");
- RtlIpv4AddressToStringW(&addr.Ipv4.sin_addr, addrStr.data());
- portString += L";listen_addr=";
- portString += addrStr;
- }
- LOG_IF_FAILED(server->AddShare(portString.c_str(), nullptr, 0));
- }
- return 0;
- });
- virtioNetworkingEngine->OnGuestInterfaceStateChanged([&](const std::string& name, bool isUp) {});
- m_networkingEngine.reset(virtioNetworkingEngine.release());
+ m_networkingEngine = std::make_unique(
+ std::move(gnsChannel), m_vmConfig.EnableLocalhostRelay, m_guestDeviceManager, m_userToken);
}
else if (m_vmConfig.NetworkingMode == NetworkingMode::Bridged)
{
@@ -831,9 +772,9 @@ WslCoreVm::~WslCoreVm() noexcept
}
// Shutdown virtio device hosts.
- if (m_deviceHostSupport)
+ if (m_guestDeviceManager)
{
- m_deviceHostSupport->Shutdown();
+ m_guestDeviceManager->Shutdown();
}
// Call RevokeVmAccess on each VHD that was added to the utility VM. This
@@ -956,7 +897,7 @@ void WslCoreVm::AddPlan9Share(
if (m_vmConfig.EnableVirtio9p)
{
- server = m_deviceHostSupport->GetRemoteFileSystem(__uuidof(p9fs::Plan9FileSystem), VirtIoTag);
+ server = m_guestDeviceManager->GetRemoteFileSystem(__uuidof(p9fs::Plan9FileSystem), VirtIoTag);
}
else
{
@@ -969,10 +910,10 @@ void WslCoreVm::AddPlan9Share(
if (!server)
{
- server = CreateComServerAsUser(UserToken);
+ server = wsl::windows::common::wslutil::CreateComServerAsUser(UserToken);
if (m_vmConfig.EnableVirtio9p)
{
- m_deviceHostSupport->AddRemoteFileSystem(__uuidof(p9fs::Plan9FileSystem), VirtIoTag, server);
+ m_guestDeviceManager->AddRemoteFileSystem(__uuidof(p9fs::Plan9FileSystem), VirtIoTag, server);
// Start with one device to handle the first mount request. After
// each mount, the Plan9 file-system will request additional
@@ -1000,66 +941,10 @@ void WslCoreVm::AddPlan9Share(
if (addNewDevice)
{
// This requires more privileges than the user may have, so impersonation is disabled.
- (void)m_deviceHostSupport->AddNewDevice(VIRTIO_PLAN9_DEVICE_ID, server, VirtIoTag);
+ (void)m_guestDeviceManager->AddNewDevice(VIRTIO_PLAN9_DEVICE_ID, server, VirtIoTag);
}
}
-WslCoreVm::DirectoryObjectLifetime WslCoreVm::CreateSectionObjectRoot(_In_ std::wstring_view RelativeRootPath, _In_ HANDLE UserToken) const
-{
- auto revert = wil::impersonate_token(UserToken);
- DWORD sessionId;
- DWORD bytesWritten;
- THROW_LAST_ERROR_IF(!GetTokenInformation(GetCurrentThreadToken(), TokenSessionId, &sessionId, sizeof(sessionId), &bytesWritten));
-
- // /Sessions/1/BaseNamedObjects/WSL//
- std::wstringstream sectionPathBuilder;
- sectionPathBuilder << L"\\Sessions\\" << sessionId << L"\\BaseNamedObjects" << L"\\WSL\\" << m_machineId << L"\\" << RelativeRootPath;
- auto sectionPath = sectionPathBuilder.str();
-
- UNICODE_STRING ntPath{};
- OBJECT_ATTRIBUTES attributes{};
- attributes.Length = sizeof(OBJECT_ATTRIBUTES);
- attributes.ObjectName = &ntPath;
- std::vector directoryHierarchy;
- auto remainingPath = std::wstring_view(sectionPath.data(), sectionPath.length());
- while (remainingPath.length() > 0)
- {
- // Find the next path substring, ignoring the root path backslash.
- auto nextDir = remainingPath;
- const auto separatorPos = nextDir.find(L"\\", remainingPath[0] == L'\\' ? 1 : 0);
- if (separatorPos != std::wstring_view::npos)
- {
- nextDir = nextDir.substr(0, separatorPos);
- remainingPath = remainingPath.substr(separatorPos + 1, std::wstring_view::npos);
-
- // Skip concurrent backslashes.
- while (remainingPath.length() > 0 && remainingPath[0] == L'\\')
- {
- remainingPath = remainingPath.substr(1, std::wstring_view::npos);
- }
- }
- else
- {
- remainingPath = remainingPath.substr(remainingPath.length(), std::wstring_view::npos);
- }
-
- attributes.RootDirectory = directoryHierarchy.size() > 0 ? directoryHierarchy.back().get() : nullptr;
- ntPath.Buffer = const_cast(nextDir.data());
- ntPath.Length = sizeof(WCHAR) * gsl::narrow_cast(nextDir.length());
- ntPath.MaximumLength = ntPath.Length;
- wil::unique_handle nextHandle;
- NTSTATUS status = ZwCreateDirectoryObject(&nextHandle, DIRECTORY_ALL_ACCESS, &attributes);
- if (status == STATUS_OBJECT_NAME_COLLISION)
- {
- status = NtOpenDirectoryObject(&nextHandle, MAXIMUM_ALLOWED, &attributes);
- }
- THROW_IF_NTSTATUS_FAILED(status);
- directoryHierarchy.emplace_back(std::move(nextHandle));
- }
-
- return {std::move(sectionPath), std::move(directoryHierarchy)};
-}
-
ULONG WslCoreVm::AttachDisk(_In_ PCWSTR Disk, _In_ DiskType Type, _In_ std::optional Lun, _In_ bool IsUserDisk, _In_ HANDLE UserToken)
{
auto lock = m_lock.lock_exclusive();
@@ -1868,7 +1753,8 @@ void WslCoreVm::InitializeGuest()
{
try
{
- MountSharedMemoryDevice(c_virtiofsClassId, L"wslg", L"wslg", WSLG_SHARED_MEMORY_SIZE_MB);
+ m_guestDeviceManager->AddSharedMemoryDevice(
+ c_virtiofsClassId, L"wslg", L"wslg", WSLG_SHARED_MEMORY_SIZE_MB, m_userToken.get());
m_sharedMemoryRoot = std::format(L"WSL\\{}\\wslg", m_machineId);
}
CATCH_LOG()
@@ -1967,7 +1853,7 @@ bool WslCoreVm::InitializeDrvFsLockHeld(_In_ HANDLE UserToken)
{
// Before checking whether DrvFs is already initialized, make sure any existing Plan 9 servers
// are usable.
- VerifyDrvFsServers();
+ VerifyPlan9Servers();
const auto elevated = wsl::windows::common::security::IsTokenElevated(UserToken);
if (elevated)
@@ -1999,6 +1885,12 @@ bool WslCoreVm::IsDnsTunnelingSupported() const
return SUCCEEDED_LOG(wsl::core::networking::DnsResolver::LoadDnsResolverMethods());
}
+bool WslCoreVm::IsVhdAttached(_In_ PCWSTR VhdPath)
+{
+ auto lock = m_lock.lock_exclusive();
+ return m_attachedDisks.contains({DiskType::VHD, VhdPath});
+}
+
WslCoreVm::DiskMountResult WslCoreVm::MountDisk(
_In_ PCWSTR Disk, _In_ DiskType MountDiskType, _In_ ULONG PartitionIndex, _In_opt_ PCWSTR Name, _In_opt_ PCWSTR Type, _In_opt_ PCWSTR Options)
{
@@ -2098,33 +1990,8 @@ void WslCoreVm::MountRootNamespaceFolder(_In_ LPCWSTR HostPath, _In_ LPCWSTR Gue
ResultMessage.Result);
}
-void WslCoreVm::MountSharedMemoryDevice(_In_ const GUID& ImplementationClsid, _In_ PCWSTR Tag, _In_ PCWSTR Path, _In_ UINT32 SizeMb)
-{
- if (!m_vmConfig.EnableVirtio)
- {
- return;
- }
-
- auto guestDeviceLock = m_guestDeviceLock.lock_exclusive();
- MountSharedMemoryDeviceLockHeld(ImplementationClsid, Tag, Path, SizeMb);
-}
-
-_Requires_lock_held_(m_guestDeviceLock)
-void WslCoreVm::MountSharedMemoryDeviceLockHeld(_In_ const GUID& ImplementationClsid, _In_ PCWSTR Tag, _In_ PCWSTR Path, _In_ UINT32 SizeMb)
-{
- auto objectLifetime = CreateSectionObjectRoot(Path, m_userToken.get());
-
- // For virtiofs hdv, the flags parameter has been overloaded. Flags are placed in the lower
- // 16 bits, while the shared memory size in megabytes are placed in the upper 16 bits.
- static constexpr auto VIRTIO_FS_FLAGS_SHMEM_SIZE_SHIFT = 16;
- UINT32 flags = (SizeMb << VIRTIO_FS_FLAGS_SHMEM_SIZE_SHIFT);
- WI_SetFlag(flags, VIRTIO_FS_FLAGS_TYPE_SECTIONS);
- (void)AddHdvShare(VIRTIO_VIRTIOFS_DEVICE_ID, ImplementationClsid, Tag, objectLifetime.Path.c_str(), flags, m_userToken.get());
- m_objectDirectories.emplace_back(std::move(objectLifetime));
-}
-
ULONG
-WslCoreVm::MountFileAsPersistentMemory(_In_ const GUID& ImplementationClsid, _In_ PCWSTR FilePath, _In_ bool ReadOnly)
+WslCoreVm::MountFileAsPersistentMemory(_In_ PCWSTR FilePath, _In_ bool ReadOnly)
{
hcs::Plan9ShareFlags flags{};
@@ -2146,7 +2013,7 @@ WslCoreVm::MountFileAsPersistentMemory(_In_ const GUID& ImplementationClsid, _In
// a symlink that points to a path like:
// /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00//pcicceb:00//cceb:00:00.0/virtio1/ndbus0/region0/namespace0.0/block/pmem0
// Notice the GUID in the middle of that path. That GUID is the instance ID, which is randomly
- // generated by AddHdvShare. So once we find a path with the instance ID, we know that
+ // generated by AddGuestDevice. So once we find a path with the instance ID, we know that
// eventually /dev/pmemX will appear in the guest.
auto persistentMemoryLock = m_persistentMemoryLock.lock_exclusive();
@@ -2157,8 +2024,8 @@ WslCoreVm::MountFileAsPersistentMemory(_In_ const GUID& ImplementationClsid, _In
// added as part of VM creation and therefore any failure will result in VM termination
// (in which case there's no need to remove the device).
{
- auto guestDeviceLock = m_guestDeviceLock.lock_exclusive();
- (void)AddHdvShare(VIRTIO_PMEM_DEVICE_ID, ImplementationClsid, L"", FilePath, static_cast(flags), m_userToken.get());
+ (void)m_guestDeviceManager->AddGuestDevice(
+ VIRTIO_PMEM_DEVICE_ID, VIRTIO_PMEM_CLASS_ID, L"", nullptr, FilePath, static_cast(flags), m_userToken.get());
}
// Wait for the pmem device to appear in the VM at /dev/pmemX. Guess the value of X given the
@@ -2207,56 +2074,6 @@ void WslCoreVm::WaitForPmemDeviceInVm(_In_ ULONG PmemId)
}
}
-_Requires_lock_held_(m_guestDeviceLock)
-GUID WslCoreVm::AddHdvShareWithOptions(
- _In_ const GUID& DeviceId,
- _In_ const GUID& ImplementationClsid,
- _In_ std::wstring_view AccessName,
- _In_ std::wstring_view Options,
- _In_ std::wstring_view Path,
- _In_ UINT32 Flags,
- _In_ HANDLE UserToken)
-{
- wil::com_ptr server;
-
- THROW_HR_IF(E_NOTIMPL, !m_vmConfig.EnableVirtio);
-
- // Options are appended to the name with a semi-colon separator.
- // "name;key1=value1;key2=value2"
- // The AddSharePath implementation is responsible for separating them out and interpreting them.
- std::wstring nameWithOptions{AccessName};
- if (!Options.empty())
- {
- nameWithOptions += L";";
- nameWithOptions += Options;
- }
-
- {
- auto revert = wil::impersonate_token(UserToken);
-
- server = m_deviceHostSupport->GetRemoteFileSystem(ImplementationClsid, c_defaultTag);
- if (!server)
- {
- server = CreateComServerAsUser(ImplementationClsid, UserToken);
- m_deviceHostSupport->AddRemoteFileSystem(ImplementationClsid, c_defaultTag, server);
- }
-
- const std::wstring SharePath(Path);
- THROW_IF_FAILED(server->AddSharePath(nameWithOptions.c_str(), SharePath.c_str(), Flags));
- }
-
- // This requires more privileges than the user may have, so impersonation is disabled.
- const std::wstring VirtioTag(AccessName);
- return m_deviceHostSupport->AddNewDevice(DeviceId, server, VirtioTag.c_str());
-}
-
-_Requires_lock_held_(m_guestDeviceLock)
-GUID WslCoreVm::AddHdvShare(
- _In_ const GUID& DeviceId, _In_ const GUID& ImplementationClsid, _In_ PCWSTR AccessName, _In_ PCWSTR Path, _In_ UINT32 Flags, _In_ HANDLE UserToken)
-{
- return AddHdvShareWithOptions(DeviceId, ImplementationClsid, AccessName, {}, Path, Flags, UserToken);
-}
-
_Requires_lock_held_(m_guestDeviceLock)
std::wstring WslCoreVm::AddVirtioFsShare(_In_ bool Admin, _In_ PCWSTR Path, _In_ PCWSTR Options, _In_opt_ HANDLE UserToken)
{
@@ -2289,8 +2106,14 @@ std::wstring WslCoreVm::AddVirtioFsShare(_In_ bool Admin, _In_ PCWSTR Path, _In_
tag += std::to_wstring(m_virtioFsShares.size());
WI_ASSERT(!FindVirtioFsShare(tag.c_str(), Admin));
- (void)AddHdvShareWithOptions(
- VIRTIO_VIRTIOFS_DEVICE_ID, Admin ? c_virtiofsAdminClassId : c_virtiofsClassId, tag, key.OptionsString(), sharePath, VIRTIO_FS_FLAGS_TYPE_FILES, UserToken);
+ (void)m_guestDeviceManager->AddGuestDevice(
+ VIRTIO_VIRTIOFS_DEVICE_ID,
+ Admin ? c_virtiofsAdminClassId : c_virtiofsClassId,
+ tag.c_str(),
+ key.OptionsString().c_str(),
+ sharePath.c_str(),
+ VIRTIO_FS_FLAGS_TYPE_FILES,
+ UserToken);
m_virtioFsShares.emplace(std::move(key), tag);
created = true;
@@ -2640,7 +2463,7 @@ std::pair WslCoreVm::UnmountVolume(_In_ const AttachedD
}
_Requires_lock_held_(m_guestDeviceLock)
-void WslCoreVm::VerifyDrvFsServers()
+void WslCoreVm::VerifyPlan9Servers()
{
for (auto it = m_plan9Servers.begin(); it != m_plan9Servers.end();)
{
@@ -2810,12 +2633,6 @@ LX_INIT_DRVFS_MOUNT WslCoreVm::s_InitializeDrvFs(_Inout_ WslCoreVm* VmContext, _
}
}
-bool WslCoreVm::IsVhdAttached(_In_ PCWSTR VhdPath)
-{
- auto lock = m_lock.lock_exclusive();
- return m_attachedDisks.contains({DiskType::VHD, VhdPath});
-}
-
void CALLBACK WslCoreVm::s_OnExit(_In_ HCS_EVENT* Event, _In_opt_ void* Context)
try
{
diff --git a/src/windows/service/exe/WslCoreVm.h b/src/windows/service/exe/WslCoreVm.h
index 17ed189..f807e91 100644
--- a/src/windows/service/exe/WslCoreVm.h
+++ b/src/windows/service/exe/WslCoreVm.h
@@ -29,6 +29,7 @@ Abstract:
#include "INetworkingEngine.h"
#include "SocketChannel.h"
#include "DeviceHostProxy.h"
+#include "GuestDeviceManager.h"
#define UTILITY_VM_SHUTDOWN_TIMEOUT (30 * 1000)
#define UTILITY_VM_TERMINATE_TIMEOUT (30 * 1000)
@@ -114,10 +115,8 @@ public:
ReadOnly = 0x1
};
- void MountSharedMemoryDevice(_In_ const GUID& ImplementationClsid, _In_ PCWSTR Tag, _In_ PCWSTR Path, _In_ UINT32 SizeMb);
-
ULONG
- MountFileAsPersistentMemory(_In_ const GUID& ImplementationClsid, _In_ PCWSTR FilePath, _In_ bool ReadOnly);
+ MountFileAsPersistentMemory(_In_ PCWSTR FilePath, _In_ bool ReadOnly);
void MountRootNamespaceFolder(_In_ LPCWSTR HostPath, _In_ LPCWSTR GuestPath, _In_ bool ReadOnly, _In_ LPCWSTR Name);
@@ -129,7 +128,7 @@ public:
void SaveAttachedDisksState();
_Requires_lock_held_(m_guestDeviceLock)
- void VerifyDrvFsServers();
+ void VerifyPlan9Servers();
enum DiskStateFlags
{
@@ -166,14 +165,6 @@ private:
DiskStateFlags Flags;
};
- struct DirectoryObjectLifetime
- {
- std::wstring Path;
- // Directory objects are temporary, even if they have children, so need to keep
- // any created handles open in order for the directory to remain accessible.
- std::vector HierarchyLifetimes;
- };
-
struct VirtioFsShare
{
VirtioFsShare(PCWSTR Path, PCWSTR Options, bool Admin);
@@ -196,19 +187,6 @@ private:
_Requires_lock_held_(m_guestDeviceLock)
void AddPlan9Share(_In_ PCWSTR AccessName, _In_ PCWSTR Path, _In_ UINT32 Port, _In_ wsl::windows::common::hcs::Plan9ShareFlags Flags, _In_ HANDLE UserToken, _In_ PCWSTR VirtIoTag);
- _Requires_lock_held_(m_guestDeviceLock)
- GUID AddHdvShare(_In_ const GUID& DeviceId, _In_ const GUID& ImplementationClsid, _In_ PCWSTR AccessName, _In_opt_ PCWSTR Path, _In_ UINT32 Flags, _In_ HANDLE UserToken);
-
- _Requires_lock_held_(m_guestDeviceLock)
- GUID AddHdvShareWithOptions(
- _In_ const GUID& DeviceId,
- _In_ const GUID& ImplementationClsid,
- _In_ std::wstring_view AccessName,
- _In_ std::wstring_view Options,
- _In_ std::wstring_view Path,
- _In_ UINT32 Flags,
- _In_ HANDLE UserToken);
-
_Requires_lock_held_(m_guestDeviceLock)
std::wstring AddVirtioFsShare(_In_ bool Admin, _In_ PCWSTR Path, _In_ PCWSTR Options, _In_opt_ HANDLE UserToken = nullptr);
@@ -217,19 +195,6 @@ private:
void CollectCrashDumps(wil::unique_socket&& socket) const;
- template
- wil::com_ptr_t CreateComServerAsUser(_In_ REFCLSID RefClsId, _In_ HANDLE UserToken)
- {
- auto revert = wil::impersonate_token(UserToken);
- return wil::CoCreateInstance(RefClsId, (CLSCTX_LOCAL_SERVER | CLSCTX_ENABLE_CLOAKING | CLSCTX_ENABLE_AAA));
- }
-
- template
- wil::com_ptr_t CreateComServerAsUser(_In_ HANDLE UserToken)
- {
- return CreateComServerAsUser(__uuidof(Class), UserToken);
- }
-
std::shared_ptr CreateInstanceInternal(
_In_ const GUID& InstanceId,
_In_ const LXSS_DISTRO_CONFIGURATION& Configuration,
@@ -239,8 +204,6 @@ private:
_In_ bool LaunchSystemDistro = false,
_Out_opt_ ULONG* ConnectPort = nullptr);
- DirectoryObjectLifetime CreateSectionObjectRoot(_In_ std::wstring_view RelativeRootPath, _In_ HANDLE UserToken) const;
-
_Requires_lock_held_(m_lock)
void EjectVhdLockHeld(_In_ PCWSTR VhdPath);
@@ -269,9 +232,6 @@ private:
DiskMountResult MountDiskLockHeld(
_In_ PCWSTR Disk, _In_ DiskType MountDiskType, _In_ ULONG PartitionIndex, _In_opt_ PCWSTR Name, _In_opt_ PCWSTR Type, _In_opt_ PCWSTR Options);
- _Requires_lock_held_(m_guestDeviceLock)
- void MountSharedMemoryDeviceLockHeld(_In_ const GUID& ImplementationClsid, _In_ PCWSTR Tag, _In_ PCWSTR Path, _In_ UINT32 SizeMb);
-
void WaitForPmemDeviceInVm(_In_ ULONG PmemId);
void OnCrash(_In_ LPCWSTR Details);
@@ -302,12 +262,14 @@ private:
static void CALLBACK s_OnExit(_In_ HCS_EVENT* Event, _In_opt_ void* Context);
- wil::srwlock m_lock;
wil::srwlock m_guestDeviceLock;
+ std::shared_ptr m_guestDeviceManager;
_Guarded_by_(m_guestDeviceLock) std::future m_drvfsInitialResult;
_Guarded_by_(m_guestDeviceLock) wil::unique_handle m_drvfsToken;
_Guarded_by_(m_guestDeviceLock) wil::unique_handle m_adminDrvfsToken;
_Guarded_by_(m_guestDeviceLock) std::map m_virtioFsShares;
+ _Guarded_by_(m_guestDeviceLock) std::map> m_plan9Servers;
+ wil::srwlock m_lock;
_Guarded_by_(m_lock) wil::unique_event m_terminatingEvent { wil::EventOptions::ManualReset };
_Guarded_by_(m_lock) wil::unique_event m_vmExitEvent { wil::EventOptions::ManualReset };
wil::unique_event m_vmCrashEvent{wil::EventOptions::ManualReset};
@@ -339,12 +301,9 @@ private:
wsl::shared::SocketChannel m_miniInitChannel;
wil::unique_socket m_notifyChannel;
SE_SID m_userSid;
- Microsoft::WRL::ComPtr m_deviceHostSupport;
std::shared_ptr m_systemDistro;
_Guarded_by_(m_lock) std::bitset m_lunBitmap;
_Guarded_by_(m_lock) std::map m_attachedDisks;
- _Guarded_by_(m_guestDeviceLock) std::map> m_plan9Servers;
- _Guarded_by_(m_guestDeviceLock) std::vector m_objectDirectories;
std::tuple m_kernelVersion;
std::wstring m_kernelVersionString;
bool m_seccompAvailable;
@@ -363,8 +322,6 @@ private:
_Guarded_by_(m_persistentMemoryLock) ULONG m_nextPersistentMemoryId = 0;
std::unique_ptr m_networkingEngine;
-
- static const std::wstring c_defaultTag;
};
DEFINE_ENUM_FLAG_OPERATORS(WslCoreVm::DiskStateFlags);
diff --git a/test/windows/PolicyTests.cpp b/test/windows/PolicyTests.cpp
index 2fa0be7..d88f6a1 100644
--- a/test/windows/PolicyTests.cpp
+++ b/test/windows/PolicyTests.cpp
@@ -327,7 +327,7 @@ class PolicyTest
const auto stop = std::chrono::steady_clock::now() + std::chrono::seconds{30};
for (;;)
{
- Microsoft::WRL::ComPtr session;
+ wil::com_ptr session;
result = CoCreateInstance(CLSID_LxssUserSession, nullptr, CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&session));
if (result == expectedResult || std::chrono::steady_clock::now() > stop)
{
diff --git a/test/windows/UnitTests.cpp b/test/windows/UnitTests.cpp
index 7a2624a..0521431 100644
--- a/test/windows/UnitTests.cpp
+++ b/test/windows/UnitTests.cpp
@@ -2448,8 +2448,7 @@ Error code: Wsl/InstallDistro/WSL_E_DISTRO_NOT_FOUND
// Validate that the shortcut is actually in the start menu
VERIFY_IS_TRUE(shortcutPath.find(startMenu) != std::string::npos);
- Microsoft::WRL::ComPtr storage;
- VERIFY_SUCCEEDED(shellLink->QueryInterface(IID_IPersistFile, &storage));
+ auto storage = shellLink.query();
VERIFY_SUCCEEDED(storage->Load(shortcutPath.c_str(), 0));