René's URL Explorer Experiment


Title: Make privileged functions available on Android · Issue #152936 · python/cpython · GitHub

Open Graph Title: Make privileged functions available on Android · Issue #152936 · python/cpython

X Title: Make privileged functions available on Android · Issue #152936 · python/cpython

Description: Proposal: configure.ac contains a list of privileged functions which are "blocked" on Android, i.e. they simply won't exist in the stdlib. This was because when any of the underlying C functions are called by a non-root user, instead of ...

Open Graph Description: Proposal: configure.ac contains a list of privileged functions which are "blocked" on Android, i.e. they simply won't exist in the stdlib. This was because when any of the underlying C functions ar...

X Description: Proposal: configure.ac contains a list of privileged functions which are "blocked" on Android, i.e. they simply won't exist in the stdlib. This was because when any of the underlying ...

Opengraph URL: https://github.com/python/cpython/issues/152936

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make privileged functions available on Android","articleBody":"### Proposal:\n\nconfigure.ac contains a list of privileged functions which are \"blocked\" on Android, i.e. they simply won't exist in the stdlib. This was because when any of the underlying C functions are called by a non-root user, instead of returning a PermissionError as they would on Linux, they cause a low-level crash of the whole process.\n\nThis approach has 2 problems:\n* Users of these functions will probably be able to handle a PermissionError, but not an AttributeError.\n* It prevents using the functions on rooted devices. \n\nTermux is working around this by making Python check the UID and raise the PermissionError itself in a non-root context. I think it would be a good idea to adopt this upstream.\n\n* This change should only affect Android; on other platforms, UID checks should continue to be done by the underlying C function.\n* Most of these functions are documented as \"not Android\"; that should also be removed.\n* Functions which are blocked in configure.ac for other reasons should continue to be blocked.\n\n### Has this already been discussed elsewhere?\n\nI have already discussed this feature proposal on the Termux issue tracker\n\n### Links to previous discussion of this feature:\n\n* https://github.com/termux/termux-packages/pull/30310\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-152977\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/mhsmith","@type":"Person","name":"mhsmith"},"datePublished":"2026-07-03T09:50:24Z","url":"https://github.com/python/cpython/issues/152936"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dcd4cb17-8cce-786a-bc19-b1f18983319f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBEA2:4279A:2EA5547:3EC08A8:6B01F256
html-safe-nonce7bb1592af2c82d7a96a61fe6d842ccd741efc754a985aeb40911aac5321f26ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUEyOjQyNzlBOjJFQTU1NDc6M0VDMDhBODo2QjAxRjI1NiIsInZpc2l0b3JfaWQiOiI1NDA3Mzk3MzMyNDk5MTY1NzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7feaa0f816520753862d4198d8fd4ba95358a9b4564f75840a92a78c69b9cbfa
hovercard-subject-tagissue:4802425041
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/152936/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6bcd37c2e614f762165959ddfba0db9a0dc13c66e331ae8312f1f7967190aef9/python/cpython/issues/152936
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6bcd37c2e614f762165959ddfba0db9a0dc13c66e331ae8312f1f7967190aef9/python/cpython/issues/152936
og:image:altProposal: configure.ac contains a list of privileged functions which are "blocked" on Android, i.e. they simply won't exist in the stdlib. This was because when any of the underlying C functions ar...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemhsmith
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/152936#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F152936
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F152936
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/152936
Reloadhttps://github.com/python/cpython/issues/152936
Reloadhttps://github.com/python/cpython/issues/152936
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/152936
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/152936
#152977https://github.com/python/cpython/pull/152977
Make privileged functions available on Androidhttps://github.com/python/cpython/issues/152936#top
#152977https://github.com/python/cpython/pull/152977
OS-androidhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-android%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/mhsmith
mhsmithhttps://github.com/mhsmith
on Jul 3, 2026https://github.com/python/cpython/issues/152936#issue-4802425041
enhance(main/python): enable some blocked POSIX functions and enable _zstd termux/termux-packages#30310https://github.com/termux/termux-packages/pull/30310
gh-152936: Make privileged functions available on Android #152977https://github.com/python/cpython/pull/152977
mhsmithhttps://github.com/mhsmith
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
OS-androidhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-android%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on Jul 3, 2026https://github.com/python/cpython/issues/152936#event-27523120423
sabamdarifhttps://github.com/sabamdarif
on Jul 3, 2026https://github.com/python/cpython/issues/152936#event-27540955879
pythongh-152936: Make privileged functions available on Androidhttps://github.com/sabamdarif/cpython/commit/8b77d9d1dbc027641f72784ef3e4067f1ea0f890
pythongh-152936https://github.com/python/cpython/issues/152936
8b77d9dhttps://github.com/sabamdarif/cpython/commit/8b77d9d1dbc027641f72784ef3e4067f1ea0f890
https://github.com/freakboy3742
freakboy3742https://github.com/freakboy3742
on Jul 6, 2026https://github.com/python/cpython/issues/152936#issuecomment-4898206744
https://github.com/mhsmith
mhsmithhttps://github.com/mhsmith
on Jul 7, 2026https://github.com/python/cpython/issues/152936#issuecomment-4907132186
termux/termux-packages#30310 (comment)https://github.com/termux/termux-packages/pull/30310#discussion_r3468765276
sabamdarifhttps://github.com/sabamdarif
on Jul 8, 2026https://github.com/python/cpython/issues/152936#event-27701664285
pythongh-152936: Use posix_error for Android checkshttps://github.com/sabamdarif/cpython/commit/dd73903ec567cdddecfd14d2c66fb03f8e37dbdd
pythongh-152936https://github.com/python/cpython/issues/152936
dd73903https://github.com/sabamdarif/cpython/commit/dd73903ec567cdddecfd14d2c66fb03f8e37dbdd
pythongh-152936: Document Android support in os and sockethttps://github.com/sabamdarif/cpython/commit/27e854c6038129ef8b8e7e6198092ca8b696d7ea
pythongh-152936https://github.com/python/cpython/issues/152936
27e854chttps://github.com/sabamdarif/cpython/commit/27e854c6038129ef8b8e7e6198092ca8b696d7ea
pythongh-152936: Fix test_os and test_posix failures on Androidhttps://github.com/sabamdarif/cpython/commit/907676bfc06490e896e7a2a0ab7528ac34c5f691
pythongh-152936https://github.com/python/cpython/issues/152936
907676bhttps://github.com/sabamdarif/cpython/commit/907676bfc06490e896e7a2a0ab7528ac34c5f691
pythongh-152936: Fix AttributeError for os.chroot on platforms withou…https://github.com/sabamdarif/cpython/commit/16b633ce71a0cc0b72886f24502a69e0524e078a
pythongh-152936https://github.com/python/cpython/issues/152936
16b633chttps://github.com/sabamdarif/cpython/commit/16b633ce71a0cc0b72886f24502a69e0524e078a
freakboy3742https://github.com/freakboy3742
on Sep 8, 2026https://github.com/python/cpython/issues/152936#event-30735805509
gh-152936: Make privileged functions available on Android (#152977)https://github.com/python/cpython/commit/adea841addefe2161afa817c90470f66904149ee
gh-152936https://github.com/python/cpython/issues/152936
#152977https://github.com/python/cpython/pull/152977
adea841https://github.com/python/cpython/commit/adea841addefe2161afa817c90470f66904149ee
freakboy3742https://github.com/freakboy3742
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#152977https://github.com/python/cpython/pull/152977
on Sep 8, 2026https://github.com/python/cpython/issues/152936#event-30735805527
maurycyhttps://github.com/maurycy
on Sep 10, 2026https://github.com/python/cpython/issues/152936#event-30913520899
Merge branch 'main' into tachyon-native-callablehttps://github.com/maurycy/cpython/commit/e028ff54dbf50b4ed3a72a6ec9d41eb721eb66b2
e028ff5https://github.com/maurycy/cpython/commit/e028ff54dbf50b4ed3a72a6ec9d41eb721eb66b2
clin1234https://github.com/clin1234
on Sep 12, 2026https://github.com/python/cpython/issues/152936#event-31023919317
pythongh-152936: Make privileged functions available on Android (pyth…https://github.com/clin1234/cpython/commit/d2a5cab0643b91a2e6dc7d691d3a7d3120a30351
pythongh-152936https://github.com/python/cpython/issues/152936
pyth…https://github.com/python/cpython/pull/152977
d2a5cabhttps://github.com/clin1234/cpython/commit/d2a5cab0643b91a2e6dc7d691d3a7d3120a30351
johnslavikhttps://github.com/johnslavik
on Sep 14, 2026https://github.com/python/cpython/issues/152936#event-31099050337
pythongh-152936: Make privileged functions available on Android (pyth…https://github.com/johnslavik/cpython/commit/7f928c27530c07c5cb3c6e3423d0bc92ae9c54f4
pythongh-152936https://github.com/python/cpython/issues/152936
pyth…https://github.com/python/cpython/pull/152977
7f928c2https://github.com/johnslavik/cpython/commit/7f928c27530c07c5cb3c6e3423d0bc92ae9c54f4
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/152936
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/152936
OS-androidhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-android%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
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.