From: Francis Dupont Date: Tue, 29 Apr 2025 10:05:49 +0000 (+0200) Subject: [#3832] Added umask to admin and keactrl X-Git-Tag: Kea-2.7.9~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e214d62395e77fac96a0f4d7361badd317ab33f7;p=thirdparty%2Fkea.git [#3832] Added umask to admin and keactrl --- diff --git a/src/bin/admin/kea-admin.in b/src/bin/admin/kea-admin.in index c08b48209b..859e566dd8 100755 --- a/src/bin/admin/kea-admin.in +++ b/src/bin/admin/kea-admin.in @@ -25,6 +25,10 @@ # 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 diff --git a/src/bin/keactrl/keactrl.in b/src/bin/keactrl/keactrl.in index ec84b0c645..da108d89fc 100755 --- a/src/bin/keactrl/keactrl.in +++ b/src/bin/keactrl/keactrl.in @@ -26,6 +26,10 @@ # 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@"