From nobody Mon Mar 21 18:59:55 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 264CF1A1C365 for ; Mon, 21 Mar 2022 18:59:56 +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 4KMkSq6Kk9z3qVV for ; Mon, 21 Mar 2022 18:59:55 +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 B6C43208DB for ; Mon, 21 Mar 2022 18:59:55 +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 22LIxt9j087468 for ; Mon, 21 Mar 2022 18:59:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22LIxthW087467 for bugs@FreeBSD.org; Mon, 21 Mar 2022 18:59:55 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 262590] [pf][patch] Anchor "blacklistd/*" not correctly shown in pfctl -a \* -s rules Date: Mon, 21 Mar 2022 18:59:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me 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: Message-ID: In-Reply-To: References: 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=1647889195; 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: in-reply-to:in-reply-to:references:references; bh=M9cIj7xCPxEUtiEMrTS0KpLtX/QwQMR2jauC/A5dlSE=; b=C5jYnH5eOsvL1hCr9744bK70uX8Dpa8fjQBYtQyZd23OXbtjRaI9UYp10ktj7PRbD2ZcOp zpePBUit1LC6IbLVg5rqdwa35WyRK6Tc2x+sY6ycTd9PQk7HlOY0eloFQUy7UtvfsR3Zlh UWXUD3bIGJm4008UB4V3b3XbqseVWtnqOCRz00bVWSsPacdaSyT2+TUVzchglBXgM4za8Z foHrUvg8M8RtegaFN2QAmB0PfmKGpF1fxtazC+xXVOouceZD2r0JxMZ++cADoqdvfPM9ZO VYqikxxeRPzFHKZp8kZmrSjZsspDxbn7FEbi6Cc98I6a3tx6d9OzYJGoTvQ0HQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647889195; a=rsa-sha256; cv=none; b=J0ZO4aewVFUJ9FOpq9jiK76K7b5MJktpZVBnlkrPk6MiPvQAW8tmor8rtz/PFVehkRrjsW nz4AnCeMYVOkiQct0Yzmh7f8zmK2dhBcgBAMnhw/hTBb2f86YeustXS34J+B8ApAOML0+o hQ1z9OuQsHkqRBGkATyIyu9N+M3xUDMl5TWFBZkFccvT4O/plH+eL5qNlFK/KEaC1cYJx3 ZXzq2PoiUuG/9C9DzyTsmS0Lr7MYJUSypSjmqC22JmGvje3qhZGnj+aqY3FDShxKsdNMif yfdJy0kEUQjTZNbIwS2KYMOI9rxDaucmmPPFeJR7WZ70aL6Y1avAEzp6EE6R1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262590 --- Comment #9 from Matteo Riondato --- (In reply to Kristof Provost from comment #8) We don't end up with "anchor parent", we end up with "parent", rather than = with "parent/*": anchor_call does not include the "anchor " part, as far as I can tell.=20 Why wouldn't "parent" be what we want (notice that if you pass something wi= th '/*" to the next recursive call, you get the error). The stripping of "/*" = is exactly what happens also when parsing the command line arguments and one g= ives "-a parent/*". As for the test scenario, please notice that there is a rule inside child t= oo. If you don't like the rules that are inside parent but not inside child, you can ignore them: the issue still exists. Notice though that there is literally nothing that prevent the situation specified in the test. 'anchor "parent/*"' in pf.conf just means: evaluate = all the rules in parent and all the rules in any anchor that is a child of pare= nt, recursively. --=20 You are receiving this mail because: You are the assignee for the bug.=