How to set ownership and permission when using `FILES=` and the image-builder

I want to deploy bind9, and currently the user bind needs write access to one or the other directory.
I want to ensure the existence of the path with an empty directory.
But how do I set and preserve (during the packing) that a dir i.e. has root:bind and 775 and all files have root:bind and 664?

What I've gathered now is, that I need to use i.e. files/etc/uci-defaults where I execute chmod and chown on /etc/bind.
Would be OK for me, but native support by the image-builder would be cool, too.

1 Like