Skip to content

OpenBSD pledge issue #128

@rapenne-s

Description

@rapenne-s

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.

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