MLVPN icon indicating copy to clipboard operation
MLVPN copied to clipboard

OpenBSD pledge issue

Open rapenne-s opened this issue 5 years ago • 0 comments

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.

rapenne-s avatar Mar 28 '20 21:03 rapenne-s