From nobody Tue Jun 18 14:47:24 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W3V306YpPz5NwG1; Tue, 18 Jun 2024 14:47:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W3V304pJkz4bJ5; Tue, 18 Jun 2024 14:47:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718722044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jnylVSfD+YKTtAoG0TS6/T9nbJUzXoEegD/DVRz7dxo=; b=wKX680r/lQWZ9Ki9ZXxI82wT0Pd5hizOnmTnychOfr9LrXmoFfP7mVYwinu1Oe/jahjxyS AIJ2rDWQwntnmEd2bAxqbPwGS6ziEB5HFvo3lT4VYDfPYlvFXd2HDG/9o98igSSgg5NH+e BDKCbW43LQHviBQaO87KSJjU5VkcJPEo1ztu0cVQ+fGRi9HpguZf6dMf4gCN0SlP83E8PX tu5PtV8Q2fdiFDAyMGYGgkK36ibgSuT8neAKeitseA14WZHSbxPUBUQIXRtBjpo/q5Y13h AvVFq8bq14a3MZVpXJb9pU1+PUQAURfJENzhi0yaltmdCwcKMq21PPwXcWjVIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718722044; a=rsa-sha256; cv=none; b=fGHPFV8L0BJzuLcVHQjA8JvhPSrlRweU2s2WclG+PC/DMSCi3JA/hcILvX258pbK7RgOAi nhrBlTA0h8bnUyRswzQLnbAA3ZfbFe6LM5ofTD8r7+eYed66pGOWtd9rwMEOXArkB3ppl2 iavOuAIvBF9HJsD2XK9tsJ2GUVoFuFmYmjLhv+zdq2Xh5nQkwOhVzWxKBuPb8+ENkKWlBv SMCDd1PxdnfDhg2fjid7xUkhBGVwhRkOHZNBKK9iwk0z2siwD6mi5XjfmacOLyicvp+3iB ART6nf2t2nmKvZ9B29lWvc72o9mLUNLOfryNZuAqvdLlGRg43HKyw60k9I0SKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718722044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jnylVSfD+YKTtAoG0TS6/T9nbJUzXoEegD/DVRz7dxo=; b=sRvVhCJvNJmwKBudX02P1juduqk1X0zlrgrS9oJFecjdF1KHaH7idlogRoUsfJb033llm2 ntNkGQz7JnjEXN+RDXNy7N+3OBgsv5wave9JlXZf4Em2h9cPtLuprEWQQcJudRpXhl+Gxs C5keavqGSqztmOy2CDFTnJanZdVtPiKvAAr1mmVcqh+Tmp+zhxFQq0j6zqtdxa/tF3afnM fT2FHMYDclTaVFueCFjtgUUtstEC+vEjHoAcykS4an7/t57qUqQzeHmfS4WQP/v8HPstxL WvAXoULpcOXXdtCrNBST9lUPhIjvCKa0W2zAcECz7zzE2gka+gnvaxEQIeRbGw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W3V304DtXz136c; Tue, 18 Jun 2024 14:47:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45IElOtQ070846; Tue, 18 Jun 2024 14:47:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45IElOoU070843; Tue, 18 Jun 2024 14:47:24 GMT (envelope-from git) Date: Tue, 18 Jun 2024 14:47:24 GMT Message-Id: <202406181447.45IElOoU070843@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 9748482d343d - stable/13 - pf tests: test longer anchor names List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9748482d343dfaca9cb92359d0af7b4d38aea3bd Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=9748482d343dfaca9cb92359d0af7b4d38aea3bd commit 9748482d343dfaca9cb92359d0af7b4d38aea3bd Author: Kristof Provost AuthorDate: 2024-05-24 12:50:53 +0000 Commit: Kristof Provost CommitDate: 2024-06-18 14:43:43 +0000 pf tests: test longer anchor names PR: 279225 MFC after: 3 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 8b28ec3861d5b3e9fd8a60dbfda13059a5301281) --- tests/sys/netpfil/pf/anchor.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/sys/netpfil/pf/anchor.sh b/tests/sys/netpfil/pf/anchor.sh index cf6da8740003..eba1ee935930 100644 --- a/tests/sys/netpfil/pf/anchor.sh +++ b/tests/sys/netpfil/pf/anchor.sh @@ -58,6 +58,37 @@ pr183198_cleanup() pft_cleanup } +atf_test_case "pr279225" "cleanup" +pr279225_head() +{ + atf_set descr "Test that we can retrieve longer anchor names, PR 279225" + atf_set require.user root +} + +pr279225_body() +{ + pft_init + + vnet_mkjail alcatraz + + pft_set_rules alcatraz \ + "nat-anchor \"appjail-nat/jail/*\" all" \ + "rdr-anchor \"appjail-rdr/*\" all" \ + "anchor \"appjail/jail/*\" all" + + atf_check -s exit:0 -o match:"nat-anchor \"appjail-nat/jail/\*\" all \{" \ + jexec alcatraz pfctl -sn -a "*" + atf_check -s exit:0 -o match:"rdr-anchor \"appjail-rdr/\*\" all \{" \ + jexec alcatraz pfctl -sn -a "*" + atf_check -s exit:0 -o match:"anchor \"appjail/jail/\*\" all \{" \ + jexec alcatraz pfctl -sr -a "*" +} + +pr279225_cleanup() +{ + pft_cleanup +} + atf_test_case "nested_anchor" "cleanup" nested_anchor_head() { @@ -133,6 +164,7 @@ wildcard_cleanup() atf_init_test_cases() { atf_add_test_case "pr183198" + atf_add_test_case "pr279225" atf_add_test_case "nested_anchor" atf_add_test_case "wildcard" }