From nobody Tue May 28 20:31:28 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 4Vpkgh6NCqz5L6Rh; Tue, 28 May 2024 20:31:28 +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 4Vpkgh44w8z4jtw; Tue, 28 May 2024 20:31:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716928288; 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=qFlmcOX70rTnMTgtoS4RLvgHDJZoTp/wJcT7royvlu8=; b=XJxe4s9IQXRrv7+GOr1BfLt3tsQzGPvGFySFIN7ad3V46dWx5iL5rQn+WJh5Ng1cM40v03 J9wbK7CJQwPFrMlgt8I5V5HtVreqDa6gbDDABmH2RZiDkQU2HtYN7CXGYl610T2eS6d/gZ oqHGbua1kLHxmBMXxH1quf9m+pgZZXXIKi0MWpNGZoX1tn9hfWUTq095Vek6xoPkm/ut7u eZMZb1ysIrZe6yeNm2t9w3Ue3oqtGRYS/jkMxUT+gufxEaKSm299WCIFNqxCnVOS1ufwcJ qP+qI41sjLb5s+bXiupuCmnhAOFMtj+7dbXag20TJh27cLKQi3D762L0PtusCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716928288; a=rsa-sha256; cv=none; b=FX6D+/liy24VOkGYdpM0XfloF3vHA8CDJeoIrdK7RDVCmV6DVjnxj5B2RGu82MgEuTktMW d7xan+tystYq9I8HmSabyyLewLUzjYCeGMymrAnM9p6YTL2y8iB6hHMgev5xAVpQdOlc3H mIFb+ZyNqwTJftAn40viQjQ1JXT0C5o90AqN4QdpQhZt3sqDksKNlQFbFNfnazkHIg8l5s G/oSZ6I6PbQza06RhrRanltk7mPm0SeLCsT914N0VF1GX6BAmn2s4mE003PUeVrT5XOBBH SkMVbYJwVcCpQK1bQ1vF9+agArr7xVi5Wjppb9R8f2b38CMi2YgeB3FtIHqi6g== 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=1716928288; 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=qFlmcOX70rTnMTgtoS4RLvgHDJZoTp/wJcT7royvlu8=; b=KeQFcO3o3erN09Y25/rcjvFLLGqzDLKMLFB0P7zC1n5zPb9+fB1BiBhYp8lUJzq7UKidfs ZwfAuR6KyaKYmVvACMq75mRiM7VCHcRs9Zkp1yu5gsHylO8AlAflM6I3X1GucLcYUaU4ES 4jH/a6csW4+9D9kudXOr4x/0pK7C4CC/rmceeyqqwACfjjOHaKl2l2AMhrmYQG8mEAKpCj GCOs6MlJUcSCgGE3B40jJ7d7fwcZWBaUzguNAo2lCxqImNx9gX/N6f1gOFqzSjP+CE1XHv 4e1M1VBvtTP2CuD1FBzUcybQOwa0WB0NVMjPzEY28YUtNvjecqNltg+EMlQ14Q== 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 4Vpkgh3fNYzRRy; Tue, 28 May 2024 20:31:28 +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 44SKVS7f068236; Tue, 28 May 2024 20:31:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44SKVSqd068233; Tue, 28 May 2024 20:31:28 GMT (envelope-from git) Date: Tue, 28 May 2024 20:31:28 GMT Message-Id: <202405282031.44SKVSqd068233@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 8b28ec3861d5 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 8b28ec3861d5b3e9fd8a60dbfda13059a5301281 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=8b28ec3861d5b3e9fd8a60dbfda13059a5301281 commit 8b28ec3861d5b3e9fd8a60dbfda13059a5301281 Author: Kristof Provost AuthorDate: 2024-05-24 12:50:53 +0000 Commit: Kristof Provost CommitDate: 2024-05-28 20:29:38 +0000 pf tests: test longer anchor names PR: 279225 MFC after: 3 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") --- 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 b1faa5f6c57e..311d6485e794 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() { @@ -167,6 +198,7 @@ nested_label_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" atf_add_test_case "nested_label"