sandlock icon indicating copy to clipboard operation
sandlock copied to clipboard

network: named unix socket with a relative path is always refused

Open congwang-mk opened this issue 1 month ago • 1 comments

`child_root_path` (network/unix.rs) returns `None` for a relative `sun_path`, so on-behalf `connect`/`sendto` to e.g. `./svc.sock` always fails with `ECONNREFUSED`.

The comment says the supervisor cannot reproduce the child's cwd, but `/proc//cwd` does (the notif pid is a tid). The grant check already runs on the pinned inode's real path, so resolving `/proc//cwd/` keeps it safe. Fix the resolution and the comment.

congwang-mk avatar Oct 23 '26 04:10 congwang-mk

Looking into this right now

aeryz avatar Oct 26 '26 17:10 aeryz