Hacker ApprovedDepartments

Landlock

Hacker Approved

Kernel sandboxing API in Developer tools

Lets programs restrict their own file access without root or setup, unlike most Linux privilege-dropping options. Caveat: it mostly covers filesystem access, not other areas.

Lets programs restrict their own file access without root or setup, unlike most Linux privilege-dropping options. Caveat: it mostly covers filesystem access, not other areas.

31 people gave an opinion

recommend it
25
criticize it
6
approval share
81%
Each figure is one person. RecommendsCriticizes

Recommended in 10 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 25 people recommend itNeeds 10 or more, met.
  • 4.2 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 10 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • No root or setup needed

    “I like it because it just works as an unprivileged usermode program without setting anything up.”

    Comment from 30 Nov 2025 in “Landlock-Ing Linux”

    “I wrote a small landlock wrapper using go-landlock to sandbox pi that works well”

    Comment from 25 Feb 2026 in “Pi – a minimal terminal coding harness”

    “You know what's also been around and doesn't require root? Landlock.”

    Comment from 20 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload”
  • Used to sandbox AI coding agents

    “I wrote a small landlock wrapper using go-landlock to sandbox pi that works well”

    Comment from 25 Feb 2026 in “Pi – a minimal terminal coding harness”

    “deterministic enforcement that the LLM can't reason its way around”

    Comment from 23 Feb 2026 in “Kernel-enforced sandbox App and SDK for AI agents, MCP and LLM workloads”

    “Pi even has a sandbox plugin for Landlock”

    Comment from 13 Jul 2026 in “Grok uploaded my user directory to xAI's servers”
  • Lets apps harden themselves

    “This lets developers of applications harden themselves, it doesn't require the end-user to do anything”

    Comment from 30 Nov 2025 in “Landlock-Ing Linux”

    “Firejail requires SUID, LandLock does not.”

    Comment from 29 Nov 2025 in “Landlock-Ing Linux”

    “In the application code itself is where landlock shines at the moment.”

    Comment from 29 Nov 2025 in “Landlock-Ing Linux”
  • Finally Linux pledge/unveil-like option

    “It's the first of its kind on Linux that doesn't completely suck”

    Comment from 30 May 2026 in “Openrsync: A BSD-licensed implementation of rsync, by the OpenBSD team”

    “Finally Linux has something that approaches pledge/unveil”

    Comment from 16 Nov 2025 in “Why use OpenBSD?”

What people warn about

Each mark is one comment

  • Limited beyond filesystem access

    “Landlock and Seatbelt reduce filesystem blast radius. They do not give you a separate kernel”

    Comment from 23 Sep 2026 in “Sandboxing with Minimal Effort”

    “Landlock right now doesn't offer a lot for things that aren't file system access.”

    Comment from 9 Mar 2026 in “FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing”

    “Landlock (until ABI v4) offers pretty limited control there”

    Comment from 2 Feb 2026 in “Show HN: Nono – Kernel-enforced sandboxing for AI agents”
  • Doesn't work the same on all systems

    “Actually that doesn't just work on all systems and it breaks on others.”

    Comment from 13 Jul 2026 in “Show HN: Clawk – Give coding agents a disposable Linux VM, not your laptop”

    “Landlock (until ABI v4) offers pretty limited control there”

    Comment from 2 Feb 2026 in “Show HN: Nono – Kernel-enforced sandboxing for AI agents”

What people said

35 of the 40 comments that mention it, newest first. Each links to the original comment.

“Landlock and Seatbelt reduce filesystem blast radius. They do not give you a separate kernel”

MixedComment from 23 Sep 2026 in “Sandboxing with Minimal Effort”

“Landlock and seccomp are really cool.”

RecommendsComment from 20 Sep 2026 in “An agent fleet needs a new kind of OS, not a bigger harness”

“should be good enough for almost all cases”

RecommendsComment from 27 Aug 2026 in “The Harness Is the Thing”

“Linux can do seccomp or Landlock or gVisor or a combination.”

MixedComment from 20 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload”

“New kernel APIs which I can use in my programs — like landlock”

RecommendsComment from 20 Aug 2026 in “Linux 7.2 Released”

“You know what's also been around and doesn't require root? Landlock.”

RecommendsComment from 20 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload”

“adopt Landlock in Claude Code”

RecommendsComment from 25 Jul 2026 in “Android May Soon Restrict On-Device ADB”

“Actually that doesn't just work on all systems and it breaks on others.”

CriticizesComment from 13 Jul 2026 in “Show HN: Clawk – Give coding agents a disposable Linux VM, not your laptop”

“Pi even has a sandbox plugin for Landlock”

RecommendsComment from 13 Jul 2026 in “Grok uploaded my user directory to xAI's servers”

“It's the first of its kind on Linux that doesn't completely suck”

RecommendsComment from 30 May 2026 in “Openrsync: A BSD-licensed implementation of rsync, by the OpenBSD team”

“the new Landlock LSM and LSM-eBPF are quite promising”

RecommendsComment from 18 Apr 2026 in “Towards Trust in Emacs”

“Landlock is one of my favorite linux-only APIs”

RecommendsComment from 9 Mar 2026 in “FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing”

“combine it with mount and user namespaces and Landlock for filesystem constraints”

RecommendsComment from 9 Mar 2026 in “FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing”

“Landlock right now doesn't offer a lot for things that aren't file system access.”

MixedComment from 9 Mar 2026 in “FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing”

“I've actually found it pretty fine.”

RecommendsComment from 9 Mar 2026 in “FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing”

“I understand that Landlock is the way to go”

RecommendsComment from 9 Mar 2026 in “FreeBSD Capsicum vs. Linux Seccomp Process Sandboxing”

“I wrote a small landlock wrapper using go-landlock to sandbox pi that works well”

RecommendsComment from 25 Feb 2026 in “Pi – a minimal terminal coding harness”

“deterministic enforcement that the LLM can't reason its way around”

RecommendsComment from 23 Feb 2026 in “Kernel-enforced sandbox App and SDK for AI agents, MCP and LLM workloads”

“Landlock (until ABI v4) offers pretty limited control there”

CriticizesComment from 2 Feb 2026 in “Show HN: Nono – Kernel-enforced sandboxing for AI agents”

“bubblewrap and similar (Landlock, sandbox-exec on Mac) are solid lightweight options”

RecommendsComment from 30 Jan 2026 in “Show HN: Amla Sandbox – WASM bash shell sandbox for AI agents”

“Landlock for filesystem restrictions”

RecommendsComment from 20 Jan 2026 in “Running Claude Code dangerously (safely)”

“landlock works great in Fil-C”

RecommendsComment from 14 Dec 2025 in “Linux Sandboxes and Fil-C”

“doesn't seem anywhere near as nice as pledge() and unveil()”

MixedComment from 1 Dec 2025 in “Landlock-Ing Linux”

“the security object must exist when the policy is being established”

CriticizesComment from 30 Nov 2025 in “Landlock-Ing Linux”

“This is massive since most ways of dropping privileges on Linux require already having significant permissions”

RecommendsComment from 30 Nov 2025 in “Landlock-Ing Linux”

“it's on by default and probably can't be turned off”

RecommendsComment from 30 Nov 2025 in “Landlock-Ing Linux”

“I like it because it just works as an unprivileged usermode program without setting anything up.”

RecommendsComment from 30 Nov 2025 in “Landlock-Ing Linux”

“This approach looks like a great start for me.”

RecommendsComment from 30 Nov 2025 in “Landlock-Ing Linux”

“Well that seems like a major oversight there”

CriticizesComment from 30 Nov 2025 in “Landlock-Ing Linux”

“landlock only restricts tcp sockets”

CriticizesComment from 30 Nov 2025 in “Landlock-Ing Linux”

“This lets developers of applications harden themselves, it doesn't require the end-user to do anything”

RecommendsComment from 30 Nov 2025 in “Landlock-Ing Linux”

“In the application code itself is where landlock shines at the moment.”

RecommendsComment from 29 Nov 2025 in “Landlock-Ing Linux”

“it's very easy to write your own LandLock policy in the programming language of your choice”

RecommendsComment from 29 Nov 2025 in “Landlock-Ing Linux”

“Firejail requires SUID, LandLock does not.”

RecommendsComment from 29 Nov 2025 in “Landlock-Ing Linux”

“Finally Linux has something that approaches pledge/unveil”

RecommendsComment from 16 Nov 2025 in “Why use OpenBSD?”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.