NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Software Sandboxing: The Basics (2025) (blog.emilua.org)
jmclnx 56 minutes ago [-]
Interesting no mentioned about OpenBSD pledge(2), unveil(2). By far the easiest sandboxing out there. An example:

    #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.
35 minutes ago [-]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 21:31:53 GMT+0000 (Coordinated Universal Time) with Vercel.