]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3832] Added umask to admin and keactrl
authorFrancis Dupont <fdupont@isc.org>
Tue, 29 Apr 2025 10:05:49 +0000 (12:05 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 16 May 2025 09:20:43 +0000 (12:20 +0300)
src/bin/admin/kea-admin.in
src/bin/keactrl/keactrl.in

index c08b48209b2119e938b8860fcfa2d5fdc489f721..859e566dd85fe6a0d1bac872429653d93d0c465f 100755 (executable)
 # used.
 set -eu
 
+# Set no group write and no other access umask
+orig_umask=$(umask)
+umask $((orig_umask | 0027))
+
 # Shell variables derived from meson variables. Some depend on others, so mind the order.
 prefix="@prefix@"
 export prefix
index ec84b0c6454b3eccefd80d9455ae50c20a6512ba..da108d89fc14711c31805c8e51dc273820409557 100755 (executable)
 # used.
 set -eu
 
+# Set no group write and no other access umask
+orig_umask=$(umask)
+umask $((orig_umask | 0027))
+
 HAVE_NETCONF='@HAVE_NETCONF@'
 EXTENDED_VERSION="@EXTENDED_VERSION@"
 PACKAGE_VERSION="@PACKAGE_VERSION@"