logoalt Hacker News

thomashabets2yesterday at 6:52 PM1 replyview on HN

Yeah, but the file system is where I put most of my files. :-)

Between file system, bind/connect, and sending signals, that covers most of it. Probably the biggest remaining risk is any unpatched bugs in the kernel itself.

So one would need to first gain execution in the process, and then elevate that access inside the kernel, in a way that doesn't just grant you root but still Landlocked, and with a much smaller effective syscall attack surface. Like even if there's a kernel bug in ioctl on devs, landlock can turn that off too.


Replies

0x457yesterday at 11:21 PM

I agree, but it would be nice if it had similar fine-grained APIs for network calls. That said I solved it by using LD_PRELOAD and socks5. It's not perfect, but good enough.

Landlock is one of my favorite linux-only APIs almost feels like it was FreeBSD's answer to some Linux feature.