[PATCH 0/7] Allow changing the transit namespace

Bruno Wolff III bruno at wolff.to
Sat Sep 8 15:39:06 CEST 2018


On Sat, Sep 08, 2018 at 14:18:34 +0200,
  Julian Orth <ju.orth at gmail.com> wrote:
>
>wg set <device> transit-net <pid|file-path>
>
>The distinction is made based on the format of the argument. If it is an
>unsigned 32 bit integer, then it is interpreted as a process id.
>Otherwise it is interpreted as a file path. /proc does not need to be
>mounted to use the process id interpretation. To force the
>interpretation as a file-path, use a ./ prefix.

Ambiguity is generally not a good idea (especially for security applications). 
It's not my decision, but I'd rather see the syntax make it clear what the type 
of the parameter is supposed to be.


More information about the WireGuard mailing list