From nobody Thu Mar 17 14:06:52 2022 X-Original-To: bugs@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 E8A4A1A1741C for ; Thu, 17 Mar 2022 14:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@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 4KK88X5c78z3CQh for ; Thu, 17 Mar 2022 14:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 9CBEC3CB4 for ; Thu, 17 Mar 2022 14:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22HE6qMB096657 for ; Thu, 17 Mar 2022 14:06:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22HE6qeu096656 for bugs@FreeBSD.org; Thu, 17 Mar 2022 14:06:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262622] [pf][patch] fix showing rules in (some) nested anchors Date: Thu, 17 Mar 2022 14:06:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: matteo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647526012; 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=9zbXHFRlqs2MNZE0D05sP1663C5Z1RRFm3LN7xr5zvI=; b=fkr0bplYleVYAVI6zEJFebaM3s9tdZJlpatbkqpJ8JHF2AocGeDlNhdQiqEJcBSemRpJLX 0QMhDWvv7m+lnLMskkorbWge4C2gBsbtwMQHaz3wx6mAlYeHpvpUQC0zsMSqUT4AEo743l LOT2pyFRrmTjJ/QQJblrtqtdOJc9WghYMI67QT3r+RU8yZQ6iCMPu7yfMmW8SLRQZFbPc+ Z4gGxeM1lpZoonHKrpozlaL8FwkLPtE6MmbpUB4JY6JIIQpBPDcNpf3HxRw7UNfEL7DwFS qYdYI39B5jL72buh9F7OsFEX01HTfR6mSkRn8wMXXCvGOjY4LTsd8BdE7K5LNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647526012; a=rsa-sha256; cv=none; b=sMnKOS1dOpREeLRWp4TZa9fp7N691gtEUy8idbbPj/HM42fVTZTKTD9bwrUPdDcyO8/sYW n27DKu57jQ76q1Yedrd2MYnbTOPv4eaQnEweb1nC31hkYfY7JDn3ng/1cVl4u+vvv2FgT8 r9UhrgAB0k1JNOB7Sfl25WGY5fvxOYnhB91ffjyVzq2CCMhn5Tj/p0jxmkReD/vfEr8on7 HyB5h3pqPcONZjLcGs3EwH1L10a5+nauUKRAh8Hbu4DxjXCvWZMRTwds0OdTwL/Q9dpZtU /CLxpS4q40Skf3Ey8oVUDYfj65F3L9f3ZdSaDVtAwCQlR58fvXI/wHQpmrieFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262622 Bug ID: 262622 Summary: [pf][patch] fix showing rules in (some) nested anchors Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: matteo@FreeBSD.org CC: kp@freebsd.org Created attachment 232517 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232517&action= =3Dedit Patch that fixes the issue After commit 8c1400b0a1083c9e2bf8f3418eb3e3cfba1a8444 (review D34443 ), the printing of rules in nested anchors broke. The attached patch fixes it. Steps to reproduce:=20 1) in pf.conf add some nested anchors, eg: anchor test { anchor test2 { block in proto udp from any to any port 3999 } } 2) load the rules 3) pfctl -a "*" -sr Output before the patch: anchor "test" all { anchor "test2" all { pfctl: DIOCGETRULES: Invalid argument } } Output after the patch: anchor "test" all { anchor "test2" all { block drop in proto udp from any to any port =3D 3999 } } Note that some printing of some nested anchors is still broken (but likely = it was broken even before the above commit). See bug #262590 . --=20 You are receiving this mail because: You are the assignee for the bug.=