[Dnsmasq-discuss] dnsmasq's use of /var/lib/misc/
Simon Kelley
simon at thekelleys.org.uk
Tue Dec 4 10:24:10 GMT 2007
Jima wrote:
> Folks,
>
> I've been asked by RedHat's selinux policy guy to not use
> /var/lib/misc/ for dnsmasq's leases file. My first instinct is to use
> /var/lib/dnsmasq/, but I wondered if anyone (especially Simon!) had any
> commentary on this.
I chose /var/lib/misc originally for no good reason, I just looked for a
directory which already existed so that "make install" would be simpler.
I'm sure that /var/lib/dnsmasq is more technically correct, but
unilaterally making the change in the distributed tarball will break
existing installations and upset people.
For distro packages, I can't any reason not to change: a little script
which moves any existing leasefile as part of the upgrade is all that's
required.
As I'm sure you're aware the default leasefile location is specified in
src/config.h
If you want to avoid any patches to the distributed source, an
alternative is to invoke dnsmasq from the package-provided startup
script as "dnsmasq -l /var/lib/dnsmasq/dnsmasq.leases" I use a similar
technique in the debian package to change the default user from "nobody"
to "dnsmasq" without having to maintain a patch.
Cheers,
Simon.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=407901
>
> Thanks!
>
> Jima
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list