The Samba-Bugzilla – Bug 11714
Listening for network interface changes doesn't work
Last modified: 2016-02-17 08:27:32 UTC
winbindd is watching for network interface address changes by virtue of our addrchange_send/recv() API that uses netlink to query the kernel for this information.
[2016/02/04 11:43:31.723123, 10, pid=17692, effective(0, 0), real(0, 0)] ../source3/lib/addrchange.c:154(addrchange_done)
tdgram_recvfrom_recv returned Operation not supported
[2016/02/04 11:43:31.723176, 10, pid=17692, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd.c:1486(winbindd_addr_changed)
addrchange_recv failed: NT_STATUS_NOT_SUPPORTED, stop listening
strace shows a failing ioctl(fd, FIONREAD, ...) returning EOPNOTSUPP. We use the ioctl to determine the amount of pending data so we can allocate an appropriate buffer.
Patch to follow.
When this patch is finalised, can it please be backported to Samba 4.4, 4.3 and 4.2?
I'm opening a CTDB bug to track removal of the "smbcontrol winbindd ip-dropped ..." commands from CTDB's scripts...
Created attachment 11839 [details]
Patch for 4.2, 4.3 and 4.4 cherry-picked from master
(In reply to Ralph Böhme from comment #2)
Pushed to autobuild-v4-[4|3|2]-test.
(In reply to Karolin Seeger from comment #3)
Pushed to all branches.
Closing out bug report.