networkd: clean up NETLINK_PKTINFO vs. SO_PASSCRED confusion
authorLennart Poettering <lennart@poettering.net>
Wed, 27 May 2020 17:37:19 +0000 (19:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 May 2020 20:40:56 +0000 (22:40 +0200)
commit43007b302efae90897b62095a6995f43c60c1ff1
tree4f324a55b3ab850863866314ee0741584ad68e9b
parenta3d19f5d99c44940831a33df8b5bece4aaf749f7
networkd: clean up NETLINK_PKTINFO vs. SO_PASSCRED confusion

We actually care for NETLINK_PKTINFO, not for SO_PASSCRED, hence when
allocating the netlink socket, configure things accordingly.

Tracked down by Benjamin Robin, see:

https://github.com/systemd/systemd/pull/15571#issuecomment-633213747
src/libsystemd/sd-netlink/netlink-socket.c
units/systemd-networkd.socket