From nobody Tue Jun 18 14:47:23 2024 X-Original-To: dev-commits-src-branches@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 4W3V2z74tnz5NwK0; Tue, 18 Jun 2024 14:47:23 +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 4W3V2z5fKBz4bTW; Tue, 18 Jun 2024 14:47:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718722043; 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=FtIoXhPYaeNEKQKD0+YQy2oq+qa+Ebc80oUOnvpDTzs=; b=l+c/6gFIaU/Zts+m0AYS2zuLY7IOQ0TVw46gQh2kp6bpWt/CEqqalHRi86sXlVZghNpHEQ 6fq/xUMmtR8SrDbzxHRU2QYqJm0tXRo72p4ShhyciJTLXGJUa2iO3vGSTwq5AiMsb5rF2z 0YuVr2B0tmB+E9P2LuiAlsfKgxSBsjvVIefpMtxYAU+byeDs+G+trOiqaZ4U9HnAUEjLxf uayOVvgA+lbvmRbbj+iRw98Uy+L9Yx+f7LpUBBl4MylaWh8pSehVLFAB/KTBPs7KNzb6/l j4IS+T/MHrGJPlOLPgNrWzO4EAWOjh+xMz1pZFBaLxoVJKtWcGKjIZ107CfoGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718722043; a=rsa-sha256; cv=none; b=lxQCahvKNgs9p+u1nd6BxZUFCTKXuv/uZbM3tlT1R1UZ1CLKNwMSplUAWbnEg93m7/C6Mj FX+TsQ5uyd8Ga3Q3sH2jtWEqr+qo/zLVxaUNIc8TdzDuShiNMGnOvCytLOsVVFnZDnyXFe uK/s8AW9nVSPc7x01yyS67eE2eAJtN1ba4kpC0MJ/71Rh+ryGe+tg64ucsBY7YHi3NKBEO GAtYxjjklhF/+yTP2aDpdxvhcJM5lcHcDntu9GvNhTojrXI9+p4bY5RTZ3l0YsHcrQ+m96 r7JueJc36BeOndu3LzQPWvgpIN6CgpFXsSRf3AdtmbdKR7TYFulgCbvJxK4XgA== 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=1718722043; 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=FtIoXhPYaeNEKQKD0+YQy2oq+qa+Ebc80oUOnvpDTzs=; b=ZRVx21ghQDvgvutGrH7wLixWIVuc4gQ6+uiiEW0VWUjuyEj7Odh+dzmnp5FYuutnlFg0UV oWW8CPTOhBC7hrx6n/bY+XjsrNYmq8Y991NCq8xy3y79Te1qOCgt2A/bkCt+BQxHUSCP2V TJPTnOL3AH8pj7i2//Qw6zXScBMNmUoWiaza1yNHR9kAANRze31tzLLPoT2bL1w8ctpSij Ikg5fU44B5h85qErSgwDO94XzygR+i7fDDhnI/jf69TDpM/TSgl9uTBXW85ypN/3mk/hcA gHSODBb8w2VHnb53V7zFYNpXGgSscfs4SX3tPVt9uf07ilePWDs3zS4KKuCUAw== 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 4W3V2z5GNLz136b; Tue, 18 Jun 2024 14:47:23 +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 45IElNxH070801; Tue, 18 Jun 2024 14:47:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45IElN5Y070798; Tue, 18 Jun 2024 14:47:23 GMT (envelope-from git) Date: Tue, 18 Jun 2024 14:47:23 GMT Message-Id: <202406181447.45IElN5Y070798@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: f93083028442 - stable/14 - pf tests: test longer anchor names List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/14 X-Git-Reftype: branch X-Git-Commit: f9308302844272aa1c470cbe73feb1d2a68785ac Auto-Submitted: auto-generated The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=f9308302844272aa1c470cbe73feb1d2a68785ac commit f9308302844272aa1c470cbe73feb1d2a68785ac Author: Kristof Provost AuthorDate: 2024-05-24 12:50:53 +0000 Commit: Kristof Provost CommitDate: 2024-06-18 07:59:02 +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" }