Cong Wang

Results comments of Cong Wang

> > Since Landlock already does some network access control, and work is ongoing to add more ([#6](https://github.com/landlock-lsm/linux/issues/6), [#10](https://github.com/landlock-lsm/linux/issues/10), [#57](https://github.com/landlock-lsm/linux/issues/57)), I'd like to know what you think about the idea...

Hi @RazeLighter777 Thanks for the idea. I have two concerns: 1) As you mentioned, landlock was designed to be unprivileged, eBPF is not (using BPF token is painful). Making it...

The seccomp-based approach you described is essentially what [sandlock](https://github.com/multikernel/sandlock) implements. It uses seccomp user notification to intercept `connect()` and can enforce per-host rules — no network namespaces, no NAT, no...

If you need sandboxing inside an unprivileged container and can't get namespace permissions, [sandlock](https://github.com/multikernel/sandlock) takes a different approach: it uses Landlock + seccomp instead of namespaces, so it works inside...

This class of problem (sandbox binary needing to live outside the sandbox) goes away with sandlock (https://github.com/multikernel/sandlock), which applies Landlock + seccomp via ctypes syscalls directly in the parent process...

For what it's worth, [sandlock](https://github.com/multikernel/sandlock) sidesteps this entirely — no overlayfs, no fuse-overlayfs, no unionfs. Its copy-on-write layer intercepts filesystem syscalls via seccomp user notification and redirects writes to an...

> Neat! This is how mbox worked, too. It uses ptrace() which sandlock actually tries best to avoid (except for checkpoint).

For anyone landing here because `try` doesn't work on Ubuntu 24.04+ due to AppArmor restricting unprivileged user namespaces — you might want to check out [sandlock](https://github.com/multikernel/sandlock), which doesn't need `unshare`...

The prompt injection / tool description poisoning attack is hard to solve at the protocol level -- that's an LLM-layer problem. But the blast radius can be contained at the...

[sandlock](https://github.com/multikernel/sandlock) uses Landlock for filesystem isolation instead of bind mounts, so there's no argument limit — rules are added via `landlock_add_rule()` syscalls, not CLI args. ```bash # Allow read access...