MLVPN
MLVPN copied to clipboard
OpenBSD pledge issue
On OpenBSD (development version of 23/03/2020) with mlvpn-2.3.4 I have a pledge issue which disappear if I uncomment the following code in src/privsep.c
https://github.com/zehome/MLVPN/blob/master/src/privsep.c#L192
#ifdef HAVE_PLEDGE
if (pledge("stdio inet unix recvfd", NULL) != 0) {
err(1, "pledge");
}
#endif
In dmesg output I see a pledge violation due to "inet"
mlvpn[3378]: pledge "inet", syscall 105
I can't really explain it as inet is in the promises list of the pledge call.