<div dir="ltr">Unless bind checks the ownership for some reason, it should be OK to just remove the chown. Will do for the next release, whose upload I have just requested from my faithful sponsor.<div><br></div><div>-- </div><div>Thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 March 2016 at 11:12, Marc Haber <span dir="ltr"><<a href="mailto:mh+debian-bugs@zugschlus.de" target="_blank">mh+debian-bugs@zugschlus.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Mar 30, 2016 at 09:35:32AM +0200, Thomas Hood wrote:<br>
> I am happy to remove the chown from the (example) script. But are you sure<br>
> that bind processes the file if the owner is not root:bind?<br>
<br>
Mine takes it happily with root:staff. I guess it won't if it can't<br>
read the file, so the script should make sure to create the file world<br>
readable, which might introduce a privacy problem iff private<br>
information is in the file.<br>
<br>
Maybe take a look at the source file and spew an error if it isn't<br>
world readable, so that the local admin can decide whether to make<br>
the source file world readable or to add CAP_CHOWN to network-manager.<br>
<br>
I do not have an idea if a shell script can check for certain<br>
capabilities, so the script might want to add error handling for the<br>
chown like<br>
<br>
if ! stat --format="%A" "$TMP_FILE" | grep -q '.......r..'; then<br>
if ! chown "$TMP_FILE"; then<br>
echo >&2 "Error: cannot chown $TMP_FILE, capability missing, see #819498"<br>
fi<br>
fi<br>
<br>
(untested)<br>
<br>
Greetings<br>
<span class="HOEnZb"><font color="#888888">Marc<br>
<br>
--<br>
-----------------------------------------------------------------------------<br>
Marc Haber | "I don't trust Computers. They | Mailadresse im Header<br>
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402<br>
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421<br>
</font></span></blockquote></div><br></div>