]> git.baikalelectronics.ru Git - kernel.git/commit
sock: don't enable netstamp for af_unix sockets
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Mon, 26 Oct 2015 12:51:37 +0000 (13:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2015 02:39:14 +0000 (19:39 -0700)
commitaf302f50eccb7aa81a8ffea350eef2282ed3dd1c
tree5f45c01b2412b000dfe773a121e426c4e8dbe9c5
parent934a0ae1c66732bbc689d915ff50d2744b01ef40
sock: don't enable netstamp for af_unix sockets

netstamp_needed is toggled for all socket families if they request
timestamping. But some protocols don't need the lower-layer timestamping
code at all. This patch starts disabling it for af-unix.

E.g. systemd enables timestamping during boot-up on the journald af-unix
sockets, thus causing the system to globally enable timestamping in the
lower networking stack. Still, it is very probable that timestamping
gets activated, by e.g. dhclient or various NTP implementations.

Reported-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c