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.
restrict system operations Return values: 0 for success, -1 for failure
See Source File
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.