I’ll try it, but just off the bat, how does this compare to bubblewrap?
Also bubblewrap cannot ask for a decision in runtime: you must set up the rules beforehand.
Since I only see net options specifying ports, does this handle this use case?
I routinely --unshare-net with UDS ro-binds.
You may be using abstract sockets (@/path/uds.sock) and those do require the same netns I think.
Landlock doesn't use namespaces, they are orthogonal.