From: Wei Liu <wei.liu@kernel.org>
To: Olaf Hering <olaf@aepfle.de>
Cc: Wei Liu <wei.liu@kernel.org>,
Shradha Gupta <shradhagupta@linux.microsoft.com>,
Ani Sinha <anisinha@redhat.com>,
Saurabh Sengar <ssengar@linux.microsoft.com>,
linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org,
"K. Y. Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Dexuan Cui <decui@microsoft.com>
Subject: Re: [PATCH v1] tools: hv: change permissions of NetworkManager configuration file
Date: Sat, 7 Dec 2024 07:49:33 +0000 [thread overview]
Message-ID: <Z1P-Ddw3C1E7Rwqb@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <20241016143521.3735-1-olaf@aepfle.de>
On Wed, Oct 16, 2024 at 04:35:10PM +0200, Olaf Hering wrote:
> Align permissions of the resulting .nmconnection file, instead of
> the input file from hv_kvp_daemon. To avoid the tiny time frame
> where the output file is world-readable, use umask instead of chmod.
>
> Fixes: 42999c90 ("Support for keyfile based connection profile")
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
Applied to hyperv-fixes. Thanks.
> ---
> tools/hv/hv_set_ifconfig.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/hv/hv_set_ifconfig.sh b/tools/hv/hv_set_ifconfig.sh
> index 440a91b35823..2f8baed2b8f7 100755
> --- a/tools/hv/hv_set_ifconfig.sh
> +++ b/tools/hv/hv_set_ifconfig.sh
> @@ -81,7 +81,7 @@ echo "ONBOOT=yes" >> $1
>
> cp $1 /etc/sysconfig/network-scripts/
>
> -chmod 600 $2
> +umask 0177
> interface=$(echo $2 | awk -F - '{ print $2 }')
> filename="${2##*/}"
>
>
prev parent reply other threads:[~2024-12-07 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-16 14:35 [PATCH v1] tools: hv: change permissions of NetworkManager configuration file Olaf Hering
2024-10-22 7:53 ` Shradha Gupta
2024-12-07 7:49 ` Wei Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z1P-Ddw3C1E7Rwqb@liuwe-devbox-debian-v2 \
--to=wei.liu@kernel.org \
--cc=anisinha@redhat.com \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olaf@aepfle.de \
--cc=shradhagupta@linux.microsoft.com \
--cc=ssengar@linux.microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox