Skip to content

Landlock breaks STDIOTunnel #189

@yichi-yang

Description

@yichi-yang
$ cat wireproxy.conf
[Interface]
PrivateKey = ...
Address = ...
DNS = ...

[Peer]
PublicKey = ...
Endpoint = ...

[STDIOTunnel]
Target = example.com:80

$ wireproxy -c wireproxy.conf
...
DEBUG: 2026/01/07 00:22:39 Routine: receive incoming v4 - started
DEBUG: 2026/01/07 00:22:39 Routine: receive incoming v6 - started
DEBUG: 2026/01/07 00:22:39 peer(...) - Sending handshake initiation
DEBUG: 2026/01/07 00:22:39 peer(...) - Received handshake response
ERROR: 2026/01/07 00:22:39 Failed to open /dev/stdout: open /dev/stdout: no such device or address

It seems STDIOTunnel tries to open stdout here

stdout, err := os.OpenFile("/dev/stdout", os.O_WRONLY, 0)
but fails because of Landlock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions