<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">Hello,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
I've installed a fresh BIND on a RHEL 8.6 system with enforcing SElinux, and when I try to start BIND with the provided systemd unit file it just waits and timeout, and also logs these errors in /var/log/message</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
Jun 10 10:09:25 systemd[1]: isc-bind-named.service: Can't convert PID files /var/opt/isc/scls/isc-bind/run/named/named.pid O_PATH file descriptor to proper file descriptor: Permission denied<br>
Jun 10 10:09:25 systemd[1]: isc-bind-named.service: Can't convert PID files /var/opt/isc/scls/isc-bind/run/named/named.pid O_PATH file descriptor to proper file descriptor: Permission denied<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
If I remove PIDFile in the systemd unit it just works fine.. </div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
[Service]
<div style="margin:0px">Type=forking</div>
<div style="margin:0px">EnvironmentFile=-/etc/opt/isc/scls/isc-bind/sysconfig/named</div>
<div style="margin:0px">#PIDFile=/var/opt/isc/scls/isc-bind/run/named/named.pid</div>
<div style="margin:0px">ExecStart=/opt/isc/isc-bind/root/usr/sbin/named -u named $OPTIONS</div>
<div style="margin:0px">ExecReload=/bin/kill -HUP $MAINPID</div>
<div style="margin:0px">ExecStop=/bin/kill -TERM $MAINPID</div>
PrivateTmp=true<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<div class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">
<br>
</div>
<span class="x_elementToProof" style="margin:0px;font-size:12pt;color:rgb(0, 0, 0) !important;background-color:rgb(255, 255, 255)">Anyone else experiences this?</span><br>
</div>
</body>
</html>