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

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