-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Handle the new WSL filesystem path for the last Windows Build #17640
Copy link
Copy link
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Securitysecurity related areas such as JEAsecurity related areas such as JEA
Description
Summary of the new feature / enhancement
The PR #13120 added a feature on Windows so that the paths of scripts hosted in WSL are recognized as in the computer security zone.
Over the last builds of WSL, paths have been added:
WSL Release Change (default in bold)
| Initial | 20175 | 21354 |
|---|---|---|
| \\wsl$ | \\wsl$ | \\wsl$\ |
| \\wsl | \\wsl.localhost |
-
WSL Build 20175 :
- Change \\wsl$ prefix to \\wsl to support URI parsing.
- The old \\wsl$ path is still supported.
WSL/release-notes#build-20175
-
WSL Build 21354 :
- Switch the \\wsl prefix to \\wsl.localhost to avoid issues when there is a machine on the network named "wsl".
- \\wsl$ will continue to work.
WSL/release-notes#build-21354
#13106 is came back depending on Windows version and channel.
Proposed technical implementation details (optional)
- Append the path \\wsl.localhost to the computer security zone.
| internal const string WslRootPath = @"\\wsl$"; |
- Support both path :
# Execute a script inside the home Ubuntu-20.04
pwsh.exe -file '\\wsl$\Ubuntu-20.04\home\flavien\test.ps1'
pwsh.exe -file '\\wsl.localhost\Ubuntu-20.04\home\flavien\test.ps1'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Securitysecurity related areas such as JEAsecurity related areas such as JEA