]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Match version instead of groups in connect-bigconf github-selfhosted/master github/master
authorDamien Miller <djm@mindrot.org>
Mon, 18 Aug 2025 06:47:23 +0000 (16:47 +1000)
committerDamien Miller <djm@mindrot.org>
Mon, 18 Aug 2025 06:47:23 +0000 (16:47 +1000)
The connect-bigconf makes a giant config file to test config passing
between the sshd subprocesses. Previously it used a bunch of "Match
group" lines to construct a large file. However checking group
membership can be expensive (e.g. if a large groups database is
present or if group lookup is remote via NSS). This could be slow
enough to exceed LoginGraceTime.

This switches it to "Match version" which is just a string compare
and does just as well for making a giant nonsense config file.

regress/connect-bigconf.sh

index 56cf0ea649fc6bac75e2a643536b9227c02f4683..ca2c11918dc0ce04daaf00ec4989eaafbec78f76 100644 (file)
@@ -4,7 +4,7 @@
 tid="simple connect"
 
 for x in `jot 10000 1` ; do
-       echo "Match group NONEXIST" >> $OBJ/sshd_config
+       echo "Match version NONEXIST" >> $OBJ/sshd_config
        echo "ChrootDirectory /some/path/for/group/NONEXIST" >> $OBJ/sshd_config
 done
 #cat $OBJ/sshd_config