Blame SOURCES/0006-CVE-2020-12831.patch

ce3795
diff --git a/tools/frr.in b/tools/frr.in
ce3795
index b860797..eb64a93 100755
ce3795
--- a/tools/frr.in
ce3795
+++ b/tools/frr.in
ce3795
@@ -105,10 +105,12 @@ check_daemon()
ce3795
 			if [ ! -r "$C_PATH/$1-$2.conf" ]; then
ce3795
 				touch "$C_PATH/$1-$2.conf"
ce3795
 				chownfrr "$C_PATH/$1-$2.conf"
ce3795
+				chmod 0600 "$C_PATH/$1-$2.conf"
ce3795
 			fi
ce3795
 		elif [ ! -r "$C_PATH/$1.conf" ]; then
ce3795
 			touch "$C_PATH/$1.conf"
ce3795
 			chownfrr "$C_PATH/$1.conf"
ce3795
+			chmod 0600 "$C_PATH/$1.conf"
ce3795
 		fi
ce3795
 	fi
ce3795
 	return 0