René's URL Explorer Experiment


Title: more hostenv isolation by youknowone · Pull Request #7886 · RustPython/RustPython · GitHub

Open Graph Title: more hostenv isolation by youknowone · Pull Request #7886 · RustPython/RustPython

X Title: more hostenv isolation by youknowone · Pull Request #7886 · RustPython/RustPython

Description: A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.

Open Graph Description: Summary by CodeRabbit New Features Added OS utilities: secure urandom and process abort wrappers; Windows sound controls (play/beep/message); POSIX timezone helpers. Refactor Standardized na...

X Description: Summary by CodeRabbit New Features Added OS utilities: secure urandom and process abort wrappers; Windows sound controls (play/beep/message); POSIX timezone helpers. Refactor Standardized na...

Opengraph URL: https://github.com/RustPython/RustPython/pull/7886

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:576c1725-2d3a-3cbd-2e18-3299987ac4ae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE466:12D89D:151D00B:1BA3646:6A5C4FF2
html-safe-noncee76b57e5c85a0b19abc1c0edbd57431aeac6817b5a96291bf1c985f5dda192b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDY2OjEyRDg5RDoxNTFEMDBCOjFCQTM2NDY6NkE1QzRGRjIiLCJ2aXNpdG9yX2lkIjoiNjI0MzgyNzY0OTE1MDIxMDAzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac07ed1108089abb70524094a82578dd5a3b312aa34a5ca11900e403e7f0edbd18
hovercard-subject-tagpull_request:3695073086
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/7886/commits
twitter:imagehttps://opengraph.githubassets.com/53e1941b314449ba98c40721c097c07deec0737434c0143cdcbfb2da8278025a/RustPython/RustPython/pull/7886
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/53e1941b314449ba98c40721c097c07deec0737434c0143cdcbfb2da8278025a/RustPython/RustPython/pull/7886
og:image:altSummary by CodeRabbit New Features Added OS utilities: secure urandom and process abort wrappers; Windows sound controls (play/beep/message); POSIX timezone helpers. Refactor Standardized na...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyouknowone
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/7886/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7886%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F7886%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/7886/commits
Reloadhttps://github.com/RustPython/RustPython/pull/7886/commits
Reloadhttps://github.com/RustPython/RustPython/pull/7886/commits
Please reload this pagehttps://github.com/RustPython/RustPython/pull/7886/commits
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 291 https://github.com/RustPython/RustPython/issues
Pull requests 106 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality 0 https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
Code https://github.com/RustPython/RustPython
Issues https://github.com/RustPython/RustPython/issues
Pull requests https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects https://github.com/RustPython/RustPython/projects
Models https://github.com/RustPython/RustPython/models
Wiki https://github.com/RustPython/RustPython/wiki
Security and quality https://github.com/RustPython/RustPython/security
Insights https://github.com/RustPython/RustPython/pulse
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:hostenvhttps://github.com/youknowone/RustPython/tree/hostenv
Conversationhttps://github.com/RustPython/RustPython/pull/7886
Commits23 (23)https://github.com/RustPython/RustPython/pull/7886/commits
Checkshttps://github.com/RustPython/RustPython/pull/7886/checks
Files changedhttps://github.com/RustPython/RustPython/pull/7886/files
more hostenv isolationhttps://github.com/RustPython/RustPython/pull/7886/commits#top
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:hostenvhttps://github.com/youknowone/RustPython/tree/hostenv
Convert host_env Windows path/argv params from raw *const u16 to &WideCStrhttps://github.com/RustPython/RustPython/pull/7886/commits/a5ac299ac6345ff01036474c83bbcf72af427845
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
a5ac299https://github.com/RustPython/RustPython/pull/7886/commits/a5ac299ac6345ff01036474c83bbcf72af427845
https://github.com/RustPython/RustPython/tree/a5ac299ac6345ff01036474c83bbcf72af427845
Migrate remaining winapi raw u16 pointer signatures to typed referenceshttps://github.com/RustPython/RustPython/pull/7886/commits/cea48cc9e2c4286b98b421b4d4e06e5bd756925d
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
cea48cchttps://github.com/RustPython/RustPython/pull/7886/commits/cea48cc9e2c4286b98b421b4d4e06e5bd756925d
https://github.com/RustPython/RustPython/tree/cea48cc9e2c4286b98b421b4d4e06e5bd756925d
Migrate winreg pub unsafe fn string parameters to typed referenceshttps://github.com/RustPython/RustPython/pull/7886/commits/25a9d4026aae9b526d0a5f8c788180090b29897b
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
25a9d40https://github.com/RustPython/RustPython/pull/7886/commits/25a9d4026aae9b526d0a5f8c788180090b29897b
https://github.com/RustPython/RustPython/tree/25a9d4026aae9b526d0a5f8c788180090b29897b
Add ToPyException impls for host_env error types (PyPy wrap_oserror analog)https://github.com/RustPython/RustPython/pull/7886/commits/0acdcadf4bba25ea8f758d0c147d5c0b483b7f6a
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
0acdcadhttps://github.com/RustPython/RustPython/pull/7886/commits/0acdcadf4bba25ea8f758d0c147d5c0b483b7f6a
https://github.com/RustPython/RustPython/tree/0acdcadf4bba25ea8f758d0c147d5c0b483b7f6a
Add CheckLibcResult helper and apply to socket/fcntl/shm/posix_wasihttps://github.com/RustPython/RustPython/pull/7886/commits/dc57418c921d0f60a879ec6ef91f3a9356509ae5
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
dc57418https://github.com/RustPython/RustPython/pull/7886/commits/dc57418c921d0f60a879ec6ef91f3a9356509ae5
https://github.com/RustPython/RustPython/tree/dc57418c921d0f60a879ec6ef91f3a9356509ae5
Add Win32 BOOL/HANDLE check helpers; apply check helpers across host_envhttps://github.com/RustPython/RustPython/pull/7886/commits/2d4be2ce423c31a04343724ded1167e3b46026c5
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
2d4be2chttps://github.com/RustPython/RustPython/pull/7886/commits/2d4be2ce423c31a04343724ded1167e3b46026c5
https://github.com/RustPython/RustPython/tree/2d4be2ce423c31a04343724ded1167e3b46026c5
Apply Win32/libc check helpers to overlapped/testconsole/os.rshttps://github.com/RustPython/RustPython/pull/7886/commits/592e8b482ad275216092e3249e6e7d003dbc3e28
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
592e8b4https://github.com/RustPython/RustPython/pull/7886/commits/592e8b482ad275216092e3249e6e7d003dbc3e28
https://github.com/RustPython/RustPython/tree/592e8b482ad275216092e3249e6e7d003dbc3e28
Apply Win32 check helpers to winapi.rs (partial)https://github.com/RustPython/RustPython/pull/7886/commits/86055d28b4059507e56ede7da7994d7dd6751de9
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
86055d2https://github.com/RustPython/RustPython/pull/7886/commits/86055d28b4059507e56ede7da7994d7dd6751de9
https://github.com/RustPython/RustPython/tree/86055d28b4059507e56ede7da7994d7dd6751de9
Apply Win32 check helpers across more winapi.rs functionshttps://github.com/RustPython/RustPython/pull/7886/commits/fe71c58a015f0819e4f7515b26c1afb1bfe7f58d
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
fe71c58https://github.com/RustPython/RustPython/pull/7886/commits/fe71c58a015f0819e4f7515b26c1afb1bfe7f58d
https://github.com/RustPython/RustPython/tree/fe71c58a015f0819e4f7515b26c1afb1bfe7f58d
Apply Win32 check helpers to nt.rs (partial)https://github.com/RustPython/RustPython/pull/7886/commits/a7c567a098bfc388497e9472be226b8e67cdfd6b
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
a7c567ahttps://github.com/RustPython/RustPython/pull/7886/commits/a7c567a098bfc388497e9472be226b8e67cdfd6b
https://github.com/RustPython/RustPython/tree/a7c567a098bfc388497e9472be226b8e67cdfd6b
Add CheckWin32Sentinel helper; apply to nt.rs INVALID_HANDLE_VALUE/INVALID_FILE_ATTRIBUTES patternshttps://github.com/RustPython/RustPython/pull/7886/commits/5329cc59f8d22fbdb59c2c9fa2f3fc8fcb339c59
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
5329cc5https://github.com/RustPython/RustPython/pull/7886/commits/5329cc59f8d22fbdb59c2c9fa2f3fc8fcb339c59
https://github.com/RustPython/RustPython/tree/5329cc59f8d22fbdb59c2c9fa2f3fc8fcb339c59
Add OwnedHandle / HandleToOwned helper; apply to mmap create_named_mapping leak pathhttps://github.com/RustPython/RustPython/pull/7886/commits/f1532e203361232b90e13e942e36bc7539906ba6
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
f1532e2https://github.com/RustPython/RustPython/pull/7886/commits/f1532e203361232b90e13e942e36bc7539906ba6
https://github.com/RustPython/RustPython/tree/f1532e203361232b90e13e942e36bc7539906ba6
Use OwnedHandle RAII in nt::pipe to eliminate manual cleanup on error pathhttps://github.com/RustPython/RustPython/pull/7886/commits/e768278e520ce1eb0d8b2b13524d3921a260d770
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
e768278https://github.com/RustPython/RustPython/pull/7886/commits/e768278e520ce1eb0d8b2b13524d3921a260d770
https://github.com/RustPython/RustPython/tree/e768278e520ce1eb0d8b2b13524d3921a260d770
Use OwnedHandle in nt::chmod_follow; hoist HandleToOwned importhttps://github.com/RustPython/RustPython/pull/7886/commits/b730f7eb65e655a87f1c214d1d91776dc361b621
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
b730f7ehttps://github.com/RustPython/RustPython/pull/7886/commits/b730f7eb65e655a87f1c214d1d91776dc361b621
https://github.com/RustPython/RustPython/tree/b730f7eb65e655a87f1c214d1d91776dc361b621
Drop rustix dependency from vm cratehttps://github.com/RustPython/RustPython/pull/7886/commits/67ece5b16eef4b4652990e7e68e45e68749e3df0
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
67ece5bhttps://github.com/RustPython/RustPython/pull/7886/commits/67ece5b16eef4b4652990e7e68e45e68749e3df0
https://github.com/RustPython/RustPython/tree/67ece5b16eef4b4652990e7e68e45e68749e3df0
Fix CI failures: cross-platform regressionshttps://github.com/RustPython/RustPython/pull/7886/commits/a61d9bd5779ae9582353e783e4eede64a96c8c93
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
a61d9bdhttps://github.com/RustPython/RustPython/pull/7886/commits/a61d9bd5779ae9582353e783e4eede64a96c8c93
https://github.com/RustPython/RustPython/tree/a61d9bd5779ae9582353e783e4eede64a96c8c93
Fix CI failures: cfg gates and unused importshttps://github.com/RustPython/RustPython/pull/7886/commits/3320c2a33561759de19f7014dbb0355b972e0312
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
3320c2ahttps://github.com/RustPython/RustPython/pull/7886/commits/3320c2a33561759de19f7014dbb0355b972e0312
https://github.com/RustPython/RustPython/tree/3320c2a33561759de19f7014dbb0355b972e0312
Fix CI failures: rustfmt and windows unused importhttps://github.com/RustPython/RustPython/pull/7886/commits/e9ec6e8810ab05f21fc8ceb2c506766a382cfd99
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
e9ec6e8https://github.com/RustPython/RustPython/pull/7886/commits/e9ec6e8810ab05f21fc8ceb2c506766a382cfd99
https://github.com/RustPython/RustPython/tree/e9ec6e8810ab05f21fc8ceb2c506766a382cfd99
Push remaining libc/extern callsites from vm into host_envhttps://github.com/RustPython/RustPython/pull/7886/commits/ba3f4fa579ffa869271684041e8e68b5a038c9e7
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
ba3f4fahttps://github.com/RustPython/RustPython/pull/7886/commits/ba3f4fa579ffa869271684041e8e68b5a038c9e7
https://github.com/RustPython/RustPython/tree/ba3f4fa579ffa869271684041e8e68b5a038c9e7
Move time tz state and winsound FFI into host_envhttps://github.com/RustPython/RustPython/pull/7886/commits/45c83dd3f704803c111062a97f63f6a6680d2f45
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
45c83ddhttps://github.com/RustPython/RustPython/pull/7886/commits/45c83dd3f704803c111062a97f63f6a6680d2f45
https://github.com/RustPython/RustPython/tree/45c83dd3f704803c111062a97f63f6a6680d2f45
Migrate unsetenv to host_env::nt::wputenv; rustfmthttps://github.com/RustPython/RustPython/pull/7886/commits/49c13f8f0f8be963d199cb81893e6944b15109ca
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
49c13f8https://github.com/RustPython/RustPython/pull/7886/commits/49c13f8f0f8be963d199cb81893e6944b15109ca
https://github.com/RustPython/RustPython/tree/49c13f8f0f8be963d199cb81893e6944b15109ca
Address PR review commentshttps://github.com/RustPython/RustPython/pull/7886/commits/61e0fd4edde9aab7e6c614e0dda66b5303d617e5
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
61e0fd4https://github.com/RustPython/RustPython/pull/7886/commits/61e0fd4edde9aab7e6c614e0dda66b5303d617e5
https://github.com/RustPython/RustPython/tree/61e0fd4edde9aab7e6c614e0dda66b5303d617e5
Fix CI failures and address review follow-upshttps://github.com/RustPython/RustPython/pull/7886/commits/783c6b5064978907b1b4a4cf7121d13eeaafcde7
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
783c6b5https://github.com/RustPython/RustPython/pull/7886/commits/783c6b5064978907b1b4a4cf7121d13eeaafcde7
https://github.com/RustPython/RustPython/tree/783c6b5064978907b1b4a4cf7121d13eeaafcde7
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.