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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dcd4cb17-8cce-786a-bc19-b1f18983319f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEA2:4279A:2EA5547:3EC08A8:6B01F256 |
| html-safe-nonce | 7bb1592af2c82d7a96a61fe6d842ccd741efc754a985aeb40911aac5321f26ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUEyOjQyNzlBOjJFQTU1NDc6M0VDMDhBODo2QjAxRjI1NiIsInZpc2l0b3JfaWQiOiI1NDA3Mzk3MzMyNDk5MTY1NzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7feaa0f816520753862d4198d8fd4ba95358a9b4564f75840a92a78c69b9cbfa |
| hovercard-subject-tag | issue:4802425041 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/152936/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6bcd37c2e614f762165959ddfba0db9a0dc13c66e331ae8312f1f7967190aef9/python/cpython/issues/152936 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6bcd37c2e614f762165959ddfba0db9a0dc13c66e331ae8312f1f7967190aef9/python/cpython/issues/152936 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhsmith |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width