mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
43007b302e
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
24 lines
632 B
SYSTEMD
24 lines
632 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Network Service Netlink Socket
|
|
Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
|
|
ConditionCapability=CAP_NET_ADMIN
|
|
DefaultDependencies=no
|
|
Before=sockets.target
|
|
|
|
[Socket]
|
|
ReceiveBuffer=128M
|
|
ListenNetlink=route 1361
|
|
PassPacketInfo=yes
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|