[Dnsmasq-discuss] Patch for ioctl(SIOCSARP) issue with Docker + Dnsmasq

Kyle Manna 2bluesc+dnsmasq-disquss at gmail.com
Thu May 22 03:46:15 UTC 2014


Hey all,

I ran into an issue using dnsmasq within a docker/lxc container.
Newer versions of docker drop the NET_ADMIN capability[1] which
prevents ioctl(SIOCSARP) call from succeeding for unicast DHCPOFFERs.

I've thrown together a quick patch (hack? due to lack of familiarity
perhaps) and it's available on Github[2] as well as attached for
completeness.

I'm not sure if this is the best way to fix this or not.  I'm not that
familiar with DHCP + dnsmasq to know any better.  I've also tried a
docker container with ISC dhcpd and it worked without any
modifications. I didn't look any closer to see how isc dhcpd operated.

[1] https://github.com/dotcloud/docker/pull/4059
[2] https://github.com/kmanna/dnsmasq/compare/master...docker_arp_fail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dhcp-Broadcast-if-ARP-ioctl-fails-during-DHCPOFFER.patch
Type: application/octet-stream
Size: 2128 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20140521/949cb7c4/attachment.obj>


More information about the Dnsmasq-discuss mailing list