GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Protect the fallback temporary home directory by enforcing and checking its file mode on Unix platforms by daxian-dbw · Pull Request #27985 · PowerShell/PowerShell Conversation
|
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
A newly introduced user-facing error message is potentially misleading about the condition being detected, and should be adjusted for accuracy before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
This PR hardens PowerShell startup on Unix when HOME is not set by creating (and validating) a fallback temporary home directory with user-only permissions, and failing fast if that directory appears unsafe.
Changes:
HOME directory with explicit user-only Unix permissions (0700) and validate the resulting mode.| File | Description |
|---|---|
| src/System.Management.Automation/CoreCLR/CorePsPlatform.cs | Creates temp HOME with explicit UnixFileMode and throws on unexpected permissions. |
| src/System.Management.Automation/resources/CoreClrStubResources.resx | Adds a new resource string for the unsafe temp HOME permission startup error. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
70b55d6 to
5a4e640
Compare
|
Rebased and force-pushed the branch to fix CIs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.