dnsmasq not starting from NetworkManager with SELinux enabled.

2013-03-16 175 words 1 min read

OpenWrt - Dnsmasq
OpenWrt – Dnsmasq (Photo credit: magicfab)

 

Some time back I posted on dnsmasq starting from Network Manager and how to setup dnsmasq.

 

Now, couple of days back , I setup dnsmasq in NetworkManager but was astonished to see that there was no dnsmasq running. I checked with dig and saw that there was no response from localhost for dns queries. Checked “ps -eaf|grep dns” and found that there was no dnsmasq running. I knew that once you mention “dns=dnsmasq” in the NetworkManager then it should start up but that was not happening. And then I checked audit log, found that some permissions were denied by SELinux.

 

First check if dnsmasq is indeed having issues because of SELinux:

 

grep -C 5 sealert /var/log/messages

 

If you do see something then time to fix it.

 

grep dnsmasq /var/log/audit/audit.log
audit2allow -M mypol && semodule -i mypol.pp
systemctl restart NetworkManager

 

And with this, you should be done, though you might have to repeat this multiple times.

 

 

Enhanced by Zemanta

author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it