https://github.com/dantecatalfamo/pjail
Execute a program with pledge restrictions
https://github.com/dantecatalfamo/pjail
openbsd pledge
Last synced: 2 months ago
JSON representation
Execute a program with pledge restrictions
- Host: GitHub
- URL: https://github.com/dantecatalfamo/pjail
- Owner: dantecatalfamo
- Created: 2021-01-31T23:41:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T08:27:10.000Z (over 5 years ago)
- Last Synced: 2026-03-29T16:54:10.015Z (3 months ago)
- Topics: openbsd, pledge
- Language: C
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pjail
Execute a program with pledge restrictions
```
pjail [-hilv] [-p promise] [command] [args...]
```
## flags
- `-h` Show help
- `-i` Invert (pledge everything except promises in flags)
- `-l` List pledge promises
- `-p promise` Make pledge promise
- `-v` Verbose (print pledge string to `stderr` before executing)
# compiling
To compile, just run
```shell
make
```
# installing
To install, run
```shell
doas make install
```
# more
See [man pledge](https://man.openbsd.org/pledge.2) for more details.