pyroniasys / pyronia-cpython

Pyronia-aware implementation of CPython
Other
1 stars 1 forks source link

Provide API for declaring private Python APIs. #8

Open masomel opened 6 years ago

masomel commented 6 years ago

This API is provided by the Python stdlib, and can be used to help protect sensitive internal Python library states against misuse/memory attacks by other Python libraries.

TODO: Declare the public and private API, and enforce proper API usage via callstack inspection (for private functions or attributes, check that the calling frame is in the same module).