]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools: hv: change permissions of NetworkManager configuration file
authorOlaf Hering <olaf@aepfle.de>
Wed, 16 Oct 2024 14:35:10 +0000 (16:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:01 +0000 (14:02 +0100)
commitd72139fa20246bb0be8c94d9dc1d0a5a015f345a
tree39a17a1f41bf9d7c7f95a26434c3e9dde77df12b
parentbc1f8a86e34a0706c6935e34cfc0fb47c2939e14
tools: hv: change permissions of NetworkManager configuration file

[ Upstream commit 91ae69c7ed9e262f24240c425ad1eef2cf6639b7 ]

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: 42999c904612 ("hv/hv_kvp_daemon:Support for keyfile based connection profile")
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Link: https://lore.kernel.org/r/20241016143521.3735-1-olaf@aepfle.de
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20241016143521.3735-1-olaf@aepfle.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/hv/hv_set_ifconfig.sh