Eventually implement landlock LSM for restricting abstract unix sockets #877

Open
opened 2025-06-25 14:28:22 +00:00 by jade · 2 comments
Owner

Someone, I think @vriska, pointed out on matrix that it’s possible to landlock unix sockets into just their own landlock zone thing. This sounds sick, we should do it.

Problem is that they’re restricted to 6.12 and higher, or whatever libc bump we need for the headers. We could feature detect but it’ll be a pain until we have headers for it in stable nixpkgs, which maybe we do already?

Someone, I think @vriska, pointed out on matrix that it’s possible to landlock unix sockets into just their own landlock zone thing. This sounds sick, we should do it. Problem is that they’re restricted to 6.12 and higher, or whatever libc bump we need for the headers. We could feature detect but it’ll be a pain until we have headers for it in stable nixpkgs, which maybe we do already?
Owner

25.05 has 6.12 but I'm not a big fan of it because VM tests that makes intense use of 9pfs cannot use 6.12 due to 9pfs folio management being broken there, FWIW.

25.05 has 6.12 but I'm not a big fan of it because VM tests that makes intense use of 9pfs cannot use 6.12 due to 9pfs folio management being broken there, FWIW.
Member

We could feature detect but it’ll be a pain until we have headers for it in stable nixpkgs, which maybe we do already?

Nixpkgs 25.05's linuxHeaders is from 6.12, so I think doing feature detection is probably fine?

> We could feature detect but it’ll be a pain until we have headers for it in stable nixpkgs, which maybe we do already? Nixpkgs 25.05's `linuxHeaders` is from 6.12, so I think doing feature detection is probably fine?
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#877
No description provided.