]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Do not follow symlinks when chowning the NZD database
authorOndřej Surý <ondrej@isc.org>
Wed, 29 Apr 2026 17:18:55 +0000 (19:18 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 29 Apr 2026 17:18:55 +0000 (19:18 +0200)
When `named` runs as root, the per-view NZD database file is chowned
to the user `named` drops to. The chown call followed symlinks, so a
symlink at the database path could redirect the ownership change to an
unrelated file. The chown now refuses non-regular files and never
follows symlinks.

Closes #5905

Merge branch '5905-nzd-env-close-symlink-chown' into 'main'

See merge request isc-projects/bind9!11907


Trivial merge