From nobody Fri Aug 9 18:08:10 2024 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 4WgX2g1QZMz5SYQt for ; Fri, 09 Aug 2024 18:08:11 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WgX2f5VhMz4FG0 for ; Fri, 9 Aug 2024 18:08:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723226890; a=rsa-sha256; cv=none; b=llFVuoANhrz4gaW7MOtNQ+2pIl+pwl76LalQ4qtAeMjcVCswEvxT6+t3Z7GkrCDXGSgsW7 xHTsqJL+OC4+vzwck6y1w1/x4OS1WVWnQX/nrCiCzHHHl4zIqex1bwy+Vi0/qeZde2bAox GbmMHVlrfDq7fFhj5kmQ5efQa3dLiV22yggf51lYCWPF3cFrfpJ5Yy0N8+tyiVGimPRfT9 lY7PXfOOKLZbLRGIpqbmlKL3OZ4HmZC4VguooFAp9+WKGAmpZrRu0Dhg9WuirlLFCUlF3B lGoFI20IFPzbcz3GKoRr7b65VTSf0H2ej+e3LaME2Yu7gOTEE4Dttu/lkqb2NA== 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=1723226890; 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=6pdEZZ3HRlbqBNdiabiqtmjym571Ra5UGjkQUvfl3eM=; b=VJkIK4MTP7TkI+/BAwmrfjYtMEecq/hg2cC4ZcNrDNcbPfIwnFky1qQT5FvWSCcH9+NVfm mgVz6cjnM+0oOaxo+Uwa2uzhyaez+X9M3CUnz9jCKjGxim6qIPPzIntPQ9CIKguCsNv1Kv GKoztXSrl/Kj8pjazDxUtk9V6qyidkjo8NwVwAgX/x2YQs881D0sGDacbfaDSsOMImxo2d faOizj8C2dSD1WHU9RHZYjxgWe5AvN+JDF7aEh+7CXl0Q6vtVE0i3Uc8H+P4a1KMz+TNwz n6BTSo6l2MaQXuSgLprIEd2DWx/q1PMoSV7aqeyap30Akjtkp8k2/gkgJw3g7g== 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 4WgX2f4zyfzRfT for ; Fri, 9 Aug 2024 18:08:10 +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 479I8ARl051947 for ; Fri, 9 Aug 2024 18:08:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 479I8Acm051944 for bugs@FreeBSD.org; Fri, 9 Aug 2024 18:08:10 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 280516] blacklistd: Silence a bogus warning about the blacklistd anchor not being found Date: Fri, 09 Aug 2024 18:08:10 +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 Some People X-Bugzilla-Who: jlduran@gmail.com X-Bugzilla-Status: Open 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280516 --- Comment #4 from Jose Luis Duran --- (In reply to Mark Johnston from comment #3) There are two issues: 1. The main issue: blacklistd-helper should discard stderr when invoking the flush action (it already does for the add action). This has been submitted upstream (https://github.com/zoulasc/blocklist/pull/11). The attached patch= has the proposed fix (just sweep the warnings under the rug). 2. The warnings in pf: 2.1. Use the attached sample pf.conf: it contains a "blacklistd/*" anchor, = any anchor will do. 2.2. First test: After reloading the rules, issue: # pfctl -a blacklistd -sA Anchor 'blacklistd' not found. The anchor exists, and it works as it should. Seeing this message in the dm= esg the first time threw me off a little, thinking blacklistd was not going to = be able to add blocking rules (this can be silenced by applying step 1). I *think* this is one bug in pfctl. 2.3. Issue pfctl, specifying the anchor with all modifiers, just focusing on the warnings/errors: # pfctl -a blacklistd -sa 1> /dev/null pfctl: DIOCGETETHRULES: No such file or directory pfctl: DIOCGETRULES: Invalid argument pfctl: DIOCGETRULES: Invalid argument pfctl: DIOCGETRULES: Invalid argument I would guess this is another bug in pfctl. 2.4. Optionally, use the attached pfctl.c diff, that allready has "XXX" mar= ks on the paths that trigger the warnings above. Note that pf works fine, the warnings just don't seem right (to the untrain= ed eye). --=20 You are receiving this mail because: You are the assignee for the bug.=