
The Landlock code for Linux 6.7 adds new LANDLOCK_ACCESS_NET_BIND_TCP and LANDLOCK_ACCESS_NET_CONNECT_TCP access rights.
This new support in Landlock ABI version 3 allows restricting TCP sockets bind() and connect() system calls for specific ports. Currently the Landlock network support is limited to TCP with there being complications around UDP but that still may end up supporting UDP sockets in the future.
Those wanting to learn more about the Landlock networking support being added in Linux 6.7 can see this pull request . Those wanting to learn more about this Linux access control mechanism in general can find the documentation at Landlock.io .