<div dir="ltr">Hi  Karl,<div><br></div><div>No.We are not running bind on Linux box with apparmor.</div><div><br></div><div><br></div><div>Thanks & Regards,</div><div>Chandra M</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 8:40 PM Karl Lovink via bind-users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Alan,<br>
<br>
Are you running bind on a Linux box with apparmor. Check your apparmor configuration: /etc/apparmor.d/usr.sbin.named.<br>
<br>
Cheers,<br>
Karl <br>
<br>
> On 10 Apr 2019, at 16:31, Alan Clegg <<a href="mailto:alan@clegg.com" target="_blank">alan@clegg.com</a>> wrote:<br>
> <br>
>> On 4/10/19 10:19 AM, Alan Clegg wrote:<br>
>>> On 4/3/19 5:26 AM, Chandra Rao wrote:<br>
>>> While launching the named service coming from the latest bind as<br>
>>> mentioned below, We have observed that it's is not able to create<br>
>>> "/var/run/named" directory with the named user in the cluster. Due to<br>
>>> this we are not able to store the files "named.pid" and "session.key".<br>
>> <br>
>> named does not create the directory structure.  You will need to do that<br>
>> yourself.<br>
> <br>
> Correcting myself before others do (sigh):<br>
> <br>
> You've not shown how much of the /var/run directory structure exists.<br>
> Does /var/run exist?  What are the permissions on it?<br>
> <br>
> I've just now looked at the only instance of the "couldn't mkdir"<br>
> message in the BIND source code:<br>
> <br>
>        if (mkdir(filename, mode) == -1) {<br>
>            strerror_r(errno, strbuf, sizeof(strbuf));<br>
>            (*report)("couldn't mkdir '%s': %s", filename,<br>
>                  strbuf);<br>
>            goto error;<br>
>        }<br>
> <br>
> (my original comment was based on logging directory structure, not that<br>
> used by session information).<br>
> <br>
> AlanC<br>
> _______________________________________________<br>
> Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
> <br>
> bind-users mailing list<br>
> <a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
<br>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>