[Dnsmasq-discuss] setting capabilities failed with CONFIG_SECURITY=n
Simon Kelley
simon at thekelleys.org.uk
Tue Jan 4 19:30:34 GMT 2011
On 04/01/11 19:24, tubaman at fattuba.com wrote:
> I'm using dnsmasq 2.52 and have CONFIG_SECURITY commented out in my
> kernel config. I still get "setting capabilities failed" during startup.
> This is 2.6.32 on a powerpc machine. dnsmasq starts fine on an x86
> machine with a similar kernel config.
>
> root at OpenWrt:/# uname -a
> Linux OpenWrt 2.6.32 #21 SMP Tue Jan 4 13:16:21 CST 2011 ppc GNU/Linux
> root at OpenWrt:/# dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -l /tmp/dhcp.leases -r
> /tmp/resolv.conf.auto --dhcp-range=lan,192.168.1.100,192.168.1.250,255.255.255.
> 0,12h -2 'eth1'
>
> dnsmasq: setting capabilities failed: Operation not permitted
> root at OpenWrt:/#
>
> Ideas?
>
If your kernel doesn't provide capabilities, you will have to tell
dnsmasq to run as root by adding '-u root' to the command line.
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list