I can confirm that one solution is umask 0022 mkdir /var/cache/bind/run/systemd touch /var/cache/bind/run/systemd/notify mount --bind /run/systemd/notify /var/cache/bind/run/systemd/notify
I had previously tried this, but my default system umask for root is 0077 and I therefore initially created the directory with more restrictive permissions that meant that it still didn't work. Once I had correct that, it did indeed work. I'll review the unbound patch and see if I can put it all in systemd using ExecStartPre. If something could be documented, that would be incredibly helpful as it is by no means obvious that this has changed and how to resolve it. Many thanks, Regards, -----Original Message----- From: Marc Haber <[email protected]> Sent: 15 June 2023 06:09 To: Ondřej Surý <[email protected]>; [email protected] Cc: Giddings, Bret <[email protected]> Subject: Re: Bug#1037966: bind9: Unable to restart bind9 via systemctl when using chroot on Debian 12 CAUTION: This email was sent from outside the University of Essex. Please do not click any links or open any attachments unless you recognise and trust the sender. If you are unsure whether the content of the email is safe or have any other queries, please contact the IT Helpdesk. On Thu, Jun 15, 2023 at 06:36:10AM +0200, Ondřej Surý wrote: > Your chroot is missing the sd_notify socket. The package can’t really expect > all non-default configurations. I can probably add a NEWS.Debian entry for > this, but it’s certainly not important severity. Maybe it would also be a good idea to document how to get that socket into the chroot. Not everybody will know how to do this. #867187 seems to have a solution for unbound, maybe this one can at least be an example in the bind9 packages? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

