]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Add unbound members group access to control key 1220/head
authorPetr Menšík <pemensik@redhat.com>
Tue, 14 Jan 2025 12:55:10 +0000 (13:55 +0100)
committerPetr Menšík <pemensik@redhat.com>
Tue, 14 Jan 2025 13:35:09 +0000 (14:35 +0100)
Recent openssl genrsa does not use umask for generated keys. There is no
strong reason why every member of unbound group should be able read
server key. But control key would be quite useful to be group readable
and to allow control access to whole group. Allowing access to control
by group membership, not via sudo.

smallapp/unbound-control-setup.sh.in

index 4a358f6bd09dff79a2d2357adec9eb9ec0865497..c2a79a24297259e9734b0a3bbf0d05fbba1c35c4 100644 (file)
@@ -204,7 +204,8 @@ fi
 # remove unused permissions
 chmod o-rw \
       "$SVR_BASE.pem" \
-      "$SVR_BASE.key" \
+      "$SVR_BASE.key"
+chmod g+r,o-rw \
       "$CTL_BASE.pem" \
       "$CTL_BASE.key"