OpenBSD Library
Project description
openbsd
Python bindings for some OpenBSD-specific APIs. Currently the following are supported:
pledge
unveil
Change Log
v0.1.0 (2019-05-03)
* Initial release.
Installation
Openbsd is on PyPI. You can install it using pip:
pip install openbsd
Prerequisites
- OpenBSD 6.4 or better
- Python 3.6 or better OR Python 2.7
Usage
Import openbsd
first:
import openbsd
pledge
openbsd.pledge("stdio rpath")
print(open("/etc/resolv.conf"))
Try removing rpath
permission.
unveil
openbsd.unveil("/etc", "r")
print(open("/etc/resolv.conf"))
Try opening /bin/ksh
.
Use openbsd.unveil()
to stop limiting access to directories.
License
(c) 2019 Yuce Tekol
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openbsd-0.1.0.tar.gz
(2.3 kB
view details)
File details
Details for the file openbsd-0.1.0.tar.gz
.
File metadata
- Download URL: openbsd-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668879f9bba8535b12331136f53d72147e088da97d9e4a8c852b0c82a7415d39 |
|
MD5 | 8d2e64b32920778f265b8e8ec89d24d2 |
|
BLAKE2b-256 | 9f4d3ec8c6a7b0a606d821c637c7c857678836ce55fd68c17a015bbba5f47828 |