How to Sandbox a Linux Process with Landlock, No Root Required
Here's a program restricting itself, then trying to read two files:
without landlock:
read /etc/hostname ok
read /tmp/secret.txt ok
with landlock, /etc allowed:
read /etc/hos
freecodecamp.org13 min read