4 ms·
From the quoted text I'd understand it's the `exec` that resets the pledge.
by heinrich5991 11y ago
From the quoted text I'd understand it's the `exec` that resets the pledge.
- umanwizard 11y agoI 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