Landlock Unix Connect Control

Goal: βŒ› Linux 7.1

🐞 bug #36 πŸ’Ύ github πŸ“¬ old hook patch πŸ’Ύ V1 V2 V3 V4 V5 V6 V7 V8

πŸ’‘ TL;DR: A Landlock control for restricting the connect(2) operation on UnixDomainSockets.

Server-side can already be restricted through LANDLOCK_ACCESS_FS_MAKE_SOCK, a filesystem access right which is required to create the socket file.

Overall TODOs

Work in Progress on πŸ’Ύ github

V8 (tag unix-connect-v8)

V7 (tag unix-connect-v7)

Collected TODOs from V6 review:

V6

Collect TODOs from πŸ“§ V5 review once the discussion has settled:

Then:

Appropriate locking for accessing other’s creds

V5 (sent)


Notes

Before sending out patches, remember to run the checks:

just landlock-check-linux
git rebase -i --exec "just landlock-check-linux" mic-next

Sending a new patch version:

git format-patch --cover-letter -v8 --range-diff=unix-connect-v7 base-commit
just send-email v8-*.patch  # accumulate recipient lists in the configuration