[Dnsmasq-discuss] warning: `dnsmasq' uses 32-bit capabilities (re-visited)

Nick Warne nick at linicks.net
Sat Jun 8 11:11:37 BST 2013


On Sat, Jun 08, 2013 at 09:14:44AM +0100, Nick Warne wrote:
> On Sat, Jun 08, 2013 at 08:45:38AM +0100, Nick Warne wrote:
> > On Sat, Jun 08, 2013 at 08:17:57AM +0100, Nick Warne wrote:
> > > On Fri, Jun 07, 2013 at 10:50:05PM +0100, Simon Kelley wrote:
> > > > On 07/06/13 22:26, Nick Warne wrote:
> > > > >On Fri, Jun 07, 2013 at 09:44:13PM +0100, Simon Kelley wrote:
> > > 
> > > > >>
> > > > >>What version of dnsmasq are you using?
> > > > >
> > > > >The latest - 2.66, built from source.
> > > > >
> > > > >with:
> > > > >
> > > > >/lib/libc.so.6 -v
> > > > >GNU C Library stable release version 2.7
> > > > >
> > > > >and linux kernel (self rolled) 3.9.4
> > > > 
> > > > I'm mystified. The API hasn't changed in the latest kernel.
> > > > 
> > > > In src/dnsmasq.c, there's some code that starts
> > > > 
> > > > determine capability API version here,
> > > > 
> > > > Can you trace in gdb and see what API version it's getting?
> > > 
> > > OK, I might need some help here, long time since I used gdb like this - plus as dnsmasq needs root to start, how would I do it?
> > > 
> > 
> > Right, I put a printf in the cap section:
> > 
> > /dnsmasq-2.66$ sudo src/dnsmasq
> > version = 0x20080522
> > 
> > It finds what looks right to me?
> 
...and some more:
 
before VERSION detection:
version = 0x20080522
capsize = 0x1
 
after VERSION detection:
version = 0x20080522
capsize = 0x2
 
...so it's doing what it should do!
 
Nick
-- 
Free Software Foundation Associate Member 5508
http://linicks.net/



More information about the Dnsmasq-discuss mailing list