Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dnsmasq: setting capabilities failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Jul 15, 2008 2:53 am    Post subject: [SOLVED] dnsmasq: setting capabilities failed Reply with quote

I recently upgraded from 2.41 to 2.43. Now, when I start dnsmasq, I get the following:

Code:

 * Starting dnsmasq ...

dnsmasq: setting capabilities failed: Operation not permitted                                                           [ !! ]


No config files were changed, apparently.

What gives?
_________________
Vermont Free PC
http://www.vtfreepc.org


Last edited by rev138 on Wed Jul 16, 2008 11:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jul 16, 2008 11:04 pm    Post subject: Reply with quote

Anyone?

I find it hard to believe I'm the only one experiencing this...
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Wed Jul 16, 2008 11:05 pm    Post subject: Reply with quote

Can we get some log files?
_________________
Linux Registered User #458185

Intel Quad-Core w/ 4gigs Ram w/ 8800 GTX - Windows 7 RC
2x (Intel Dual-Core w/ 2gigs Ram - Gentoo)
Mac G5 Dual-Core w/ 2gigs Ram - OS 10.5
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jul 16, 2008 11:08 pm    Post subject: Reply with quote

This is what I get in /var/log/messages when I restart the init script:

Code:

Jul 16 18:11:58 woodchuck dnsmasq[24765]: exiting on receipt of SIGTERM
Jul 16 18:12:01 woodchuck dnsmasq[2316]: setting capabilities failed: Operation not permitted
Jul 16 18:12:01 woodchuck dnsmasq[2316]: FAILED to start up


Not very informative. I'm unaware of anywhere else it might be logging.
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jul 16, 2008 11:11 pm    Post subject: Reply with quote

Could this have anything to do with CONFIG_SECURITY_CAPABILITIES in the kernel? Mine is not enabled.
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Wed Jul 16, 2008 11:12 pm    Post subject: Reply with quote

How about /etc/dnsmasq.conf?
_________________
Linux Registered User #458185

Intel Quad-Core w/ 4gigs Ram w/ 8800 GTX - Windows 7 RC
2x (Intel Dual-Core w/ 2gigs Ram - Gentoo)
Mac G5 Dual-Core w/ 2gigs Ram - OS 10.5
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jul 16, 2008 11:15 pm    Post subject: Reply with quote

/etc/dnsmasq.conf
Code:

domain-needed
bogus-priv
filterwin2k
localise-queries
listen-address=10.1.0.1
dhcp-range=lan.hzsogood.net,10.1.0.100,10.1.0.250,255.255.255.0,12h
local=/lan.hzsogood.net/
domain=lan.hzsogood.net
expand-hosts
no-negcache
resolv-file=/etc/resolv.conf
dhcp-authoritative
dhcp-leasefile=/etc/dhcp.leases
read-ethers
dhcp-host=00:14:A4:60:73:66,kong,infinite
dhcp-host=00:1d:d9:45:1f:8a,theharlequin,infinite
dhcp-host=00:01:e6:4e:64:47,printer,infinite

_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Wed Jul 16, 2008 11:18 pm    Post subject: Reply with quote

Nothing looks out of the ordinary to me.
_________________
Linux Registered User #458185

Intel Quad-Core w/ 4gigs Ram w/ 8800 GTX - Windows 7 RC
2x (Intel Dual-Core w/ 2gigs Ram - Gentoo)
Mac G5 Dual-Core w/ 2gigs Ram - OS 10.5
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jul 16, 2008 11:23 pm    Post subject: Reply with quote

rev138 wrote:
Could this have anything to do with CONFIG_SECURITY_CAPABILITIES in the kernel? Mine is not enabled.


It does...

http://www.thekelleys.org.uk/dnsmasq/docs/FAQ wrote:
Q: Dnsmasq fails to start up with a message about capabilities.
Why did that happen and what can do to fix it?

A: Change your kernel configuration: either deselect CONFIG_SECURITY
_or_ select CONFIG_SECURITY_CAPABILITIES. Alternatively, you can
remove the need to set capabilities by running dnsmasq as root.


_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jul 16, 2008 11:41 pm    Post subject: Reply with quote

Yup, that worked :)
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum