Landlock-ing Linux - Lemmy Cafe

>Landlock: What Is It? > >Landlock is a Linux API that lets applications explicitly declare which resources they are allowed to access. Its philosophy is similar to OpenBSD’s unveil() and (less so) pledge(): programs can make a contract with the kernel stating, “I only need these files or resources — deny me everything else if I’m compromised.” > >It provides a simple, developer-friendly way to add defense-in-depth to applications. Compared to traditional Linux security mechanisms, Landlock is vastly easier to understand and integrate. > >This post is meant to be an accessible introduction, and hopefully persuade you to give Landlock a try.

I didn’t know about this API and it seems really cool. Will definitely try it out.