Skip to main content

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

BSD

Release files for openbsd 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openbsd 0.1.0
File Size Uploaded
openbsd-0.1.0.tar.gz 2.3 kB Details

Release files / openbsd-0.1.0.tar.gz

Download URL openbsd-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
668879f9bba8535b12331136f53d72147e088da97d9e4a8c852b0c82a7415d39
BLAKE2b-256 checksum
How to use checksums
9f4d3ec8c6a7b0a606d821c637c7c857678836ce55fd68c17a015bbba5f47828
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page