Software Sandboxing: The Basics (2025)(blog.emilua.org) |
Software Sandboxing: The Basics (2025)(blog.emilua.org) |
#ifdef OpenBSD
if(pledge("stdio rpath wpath cpath",NULL) == -1)
err(1,"pledge\n");
#endif
Very easy, all the other examples seem rather complex to me. unveil(2) is just as easy.