|
|
|
|
|
by umanwizard
3724 days ago
|
|
I installed OpenBSD so I could check this out. tl;dr, you were right. $ cat testpledge.c
#include <unistd.h>
#include <stdio.h>
int main()
{
pledge("proc exec", NULL);
execl("/bin/echo", "echo", "asdf", NULL);
_exit(0);
}
$ cc testpledge.c
$ ./a.out
asdf
|
|