News for hackers. Stuff that matters.
Re:Landlock-Ing Linux by smartmic on Saturday November 29, 2025 @06:31PM (#46091851)
Thanks for clarification! I meant more, why isn't there a C API first, but Rust, Haskell, and Go before that — that's kind of surprising or new to me.
Re:Landlock-Ing Linux by wging on Saturday November 29, 2025 @07:05PM (#46092093)
I read the article as saying that there's no official C library but unofficial ones do exist. Quote below, emphasis mine.

> A official c library doesn’t exist yet unfortunately, but there’s several out there you can try.

Also, it looks like there is more than zero support for C programs calling Landlock APIs. Even without a 3rd-party library you're not just calling syscall() with a magic number:

https://docs.kernel.org/userspace-api/landlock.html

https://github.com/torvalds/linux/blob/6bda50f4/include/uapi...

https://github.com/torvalds/linux/blob/6bda50f4/include/linu...

Re:Landlock-Ing Linux by WJW on Saturday November 29, 2025 @06:53PM (#46092014)
I don't understand what you mean. There's no "official" Rust, Haskell and Go APIs for this thing either. All libraries available seem to be just what some third party made available. There's also several C libraries, just none that have been officially endorsed by the Linux kernel team.
Re:Landlock-Ing Linux by nine_k on Saturday November 29, 2025 @07:15PM (#46092161)
Go is famous for not needing libc and talking to the kernel. Rust and Haskell have communities that are very interested in safety and security, so they are earlier adopters.

For C, unofficial support apparently sufficed for now.