Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD pledge issue #128

Open
rapenne-s opened this issue Mar 28, 2020 · 0 comments
Open

OpenBSD pledge issue #128

rapenne-s opened this issue Mar 28, 2020 · 0 comments

Comments

@rapenne-s
Copy link

rapenne-s commented Mar 28, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant