Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

BSD

Project details


Release history Release notifications

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for openbsd, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size openbsd-0.1.0.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page