Patch "tools: hv: change permissions of NetworkManager configuration file" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tools: hv: change permissions of NetworkManager configuration file

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tools-hv-change-permissions-of-networkmanager-config.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d7d1c3155ea6dbffb6b43a0544362647a510960f
Author: Olaf Hering <olaf@xxxxxxxxx>
Date:   Wed Oct 16 16:35:10 2024 +0200

    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@xxxxxxxxx>
    Reviewed-by: Shradha Gupta <shradhagupta@xxxxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20241016143521.3735-1-olaf@xxxxxxxxx
    Signed-off-by: Wei Liu <wei.liu@xxxxxxxxxx>
    Message-ID: <20241016143521.3735-1-olaf@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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##*/}"
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux