Skip to content

syscall: NetlinkRIB creates AF_NETLINK socket without SOCK_CLOEXEC #36053

@lmb

Description

@lmb

syscall.NetlinkRIB (which is used by net.InterfaceByName, etc.) creates an AF_NETLINK socket without setting SOCK_CLOEXEC. This means fork / exec will leak this socket to child processes.

LsfSocket and SetLsfPromisc are also affected by this, but are marked as deprecated.

What version of Go are you using (go version)?

$ go version
go version go1.13.3 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions