{"id":15024132,"url":"https://github.com/yuce/pyopenbsd","last_synced_at":"2025-04-12T06:18:48.329Z","repository":{"id":146806540,"uuid":"184671637","full_name":"yuce/pyopenbsd","owner":"yuce","description":"Python wrapper for some OpenBSD-specific APIs","archived":false,"fork":false,"pushed_at":"2019-05-05T05:54:28.000Z","size":9,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:18:39.901Z","etag":null,"topics":["cffi","openbsd","pledge","python","unveil"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-02T23:44:06.000Z","updated_at":"2023-09-08T18:13:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bf9ffd5-5801-4bbf-bf13-8017f70a9abd","html_url":"https://github.com/yuce/pyopenbsd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuce%2Fpyopenbsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuce%2Fpyopenbsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuce%2Fpyopenbsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuce%2Fpyopenbsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuce","download_url":"https://codeload.github.com/yuce/pyopenbsd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525141,"owners_count":21118620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cffi","openbsd","pledge","python","unveil"],"created_at":"2024-09-24T19:59:50.442Z","updated_at":"2025-04-12T06:18:48.307Z","avatar_url":"https://github.com/yuce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openbsd\n\nPython bindings for some OpenBSD-specific APIs. Currently the following are supported:\n\n* `pledge`\n* `unveil`\n\n## Change Log\n\n### v0.1.0 (2019-05-03)\n\n    * Initial release.\n\n## Installation\n\nOpenbsd is on PyPI. You can install it using pip:\n\n    pip install openbsd\n\n### Prerequisites\n\n* OpenBSD 6.4 or better\n* Python 3.6 or better OR Python 2.7\n\n## Usage\n\nImport `openbsd` first:\n```python\nimport openbsd\n```\n\n### pledge\n\nSee: https://man.openbsd.org/pledge.2\n\n```python\nopenbsd.pledge(\"stdio rpath\")\nprint(open(\"/etc/resolv.conf\"))\n```\n\nTry removing the`rpath permission.\n\n### unveil\n\nSee: https://man.openbsd.org/unveil.2\n\n```python\nopenbsd.unveil(\"/etc\", \"r\")\nprint(open(\"/etc/resolv.conf\"))\n```\n\nTry opening `/bin/ksh`.\n\nUse `openbsd.unveil()` to lock down restrictions.\n\n\n## Similar Projects\n\n* [PyPledge](https://gitlab.com/i80and/pypledge): Python binding for the OpenBSD pledge(2) system call. Uses ctypes.\n\n## License\n\n(c) 2019 Yuce Tekol\n\n[BSD](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuce%2Fpyopenbsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuce%2Fpyopenbsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuce%2Fpyopenbsd/lists"}