From 7fd70619f1fd5651611376f12010b237c3f96ab2 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 3 May 2019 02:31:01 +0300 Subject: updated readme --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 71df894..6896dd2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ Python bindings for some OpenBSD-specific APIs. Currently the following are supp ## Change Log -* **v0.1.0** (2019-05-03) +### v0.1.0 (2019-05-03) + * Initial release. ## Installation @@ -30,7 +31,7 @@ import openbsd ### pledge ```python -pledge("stdio rpath") +openbsd.pledge("stdio rpath") print(open("/etc/resolv.conf")) ``` @@ -39,11 +40,14 @@ Try removing `rpath` permission. ### unveil ```python -unveil("/etc", "r") +openbsd.unveil("/etc", "r") print(open("/etc/resolv.conf")) ``` -Try reading `/bin/ksh`. +Try opening `/bin/ksh`. + + +Use `openbsd.unveil()` to stop limiting access to directories. ## License -- cgit 1.4.1-2-gfad0 ptgroup> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/html/075scenario_console.cc.html
blob: fe3b2adc63d4e56e803317027329bd677c80b60e (plain) (tree)