Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Access to /private is forbidden in restricted mode #705

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

dasJ
Copy link
Member

@dasJ dasJ commented Feb 16, 2025

This error happens on Darwin since /var is a symlink to /private and /var is put into the allowed paths (since we specify that). By canonicalizing the path first, the /private path should be allowed instead, fixing the issue. The research and fix proposal come from @lilyinstarlight and I am very thankful for both of them.

This error happens on Darwin since /var is a symlink to /private and
/var is put into the allowed paths (since we specify that). By
canonicalizing the path first, the /private path should be allowed
instead, fixing the issue. The research and fix proposal come from
@lilyinstarlight and I am very thankful for both of them.
@dasJ dasJ merged commit df400f4 into released Feb 16, 2025
2 checks passed
@dasJ dasJ deleted the fix/macos-private branch February 16, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant