]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: add a "Match Group NoSuchGroup" to exercise groupaccess.c
authordjm@openbsd.org <djm@openbsd.org>
Fri, 11 Jul 2025 23:26:59 +0000 (23:26 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 11 Jul 2025 23:28:37 +0000 (09:28 +1000)
OpenBSD-Regress-ID: 7ff58e6f0eb21eb9064dd0cfa78c3b6f34b5f713

regress/cfgmatch.sh

index 2737a5f977efd5b35150fbc123abb091260b77e7..8b9d80f0a239ef716ad39eeabb0e2c099e0caadb 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: cfgmatch.sh,v 1.14 2024/09/27 01:05:54 djm Exp $
+#      $OpenBSD: cfgmatch.sh,v 1.15 2025/07/11 23:26:59 djm Exp $
 #      Placed in the Public Domain.
 
 tid="sshd_config match"
@@ -106,6 +106,8 @@ cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
 echo "PermitOpen 127.0.0.1:1 127.0.0.1:$PORT 127.0.0.2:2" >>$OBJ/sshd_proxy
 echo "Match User NoSuchUser" >>$OBJ/sshd_proxy
 echo "PermitOpen 127.0.0.1:1 127.0.0.1:2" >>$OBJ/sshd_proxy
+echo "Match Group NoSuchGroup" >>$OBJ/sshd_proxy
+echo "PermitOpen 127.0.0.1:1 127.0.0.1:2" >>$OBJ/sshd_proxy
 
 # Test that a rule that doesn't match doesn't override, plus test a
 # PermitOpen entry that's not at the start of the list