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

Metadata

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 Provenance
openbsd-0.1.0.tar.gz 2.3 kB Without provenance 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

Security for openbsd 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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