openbsd.pledge

The pledge() system call forces the current process into a restricted-service operating mode. A process which attempts a restricted operation is killed with an uncatchable SIGABRT, delivering a core file if possible.

Members

Functions

pledge
int pledge(char* promises, char* execpromises)

restrict system operations Return values: 0 for success, -1 for failure

Meta