Repository navigation
Studio: skip a Terminal PATH entry MXC cannot grant instead of failing every launch - #14129
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
1 similar comment
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13656
Problem
On Windows, Settings > Sandbox could not enable High for a user with Java 8 installed. The live check failed with:
The Terminal profile grants read access to every PATH entry under Program Files (so Git's
usr\bintools work inside the sandbox). Each grant must not go through a symlink or junction, which is correct, but one such entry made the whole policy build raise. The Java 8 installer puts a directory symlink (java8path) on the system PATH, so every Terminal launch and the Terminal capability probe failed, and the sandbox reported itself unavailable.Change
_trusted_terminal_path_dirschecks each Program Files PATH entry with the same_safe_canonical_pathrule as before and skips (logs) an entry it cannot grant, as_model_read_rootsalready does for model folders. The other entries are still granted.Tests
test_reparse_point_on_terminal_path_is_skipped_not_fatal: a junction (Windows) or symlink (elsewhere) under a trusted Program Files dir on the Terminal PATH. On main it raises the sameMxcPolicyErroras in the issue; with the change the launch request builds, the plain Git dir is granted and neither the link nor its target is.