Skip to content

Commit

Permalink
dnsmasq: work around unclear permission situation on hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 8, 2016
1 parent afa861d commit cd6cdba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/etc/inc/plugins.inc.d/dnsmasq.inc
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ function _dnsmasq_add_host_entries()
} else {
file_put_contents('/var/etc/dnsmasq-hosts', $lhosts . $dhosts);
}

/*
* Several reports indicated 600 permissions on this file.
* The reason is currently unknown, but setting it to 644
* as it should be brings the service back to life.
*/

This comment has been minimized.

Copy link
@fabianfrz

fabianfrz Dec 8, 2016

Member

@fichtner probably check the umask on those machines. Maybe something is wrong there.

chmod('/var/etc/dnsmasq-hosts', 0644);
}

function _dnsmasq_dhcpleases_start()
Expand Down

0 comments on commit cd6cdba

Please sign in to comment.