Article View: linux.kernel
Article #68Re: [PATCH v2 06/11] kconfig-audit: Introduce policy overlays schema
From: sashiko-bot
Date: Fri, 04 Dec 2026 23:10
Date: Fri, 04 Dec 2026 23:10
57 lines
4196 bytes
4196 bytes
Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] kconfig-audit: overlay schema accepts selector-only no-op rule entries - [Low] kconfig-audit: policy-overlay-v1.yml title omits overlay -- commit 58352cb3df2432252016c1d667a0a661fb223c7b Author: Ahmed S. Darwish <darwi@linutronix.de> kconfig-audit: Introduce policy overlays schema This commit adds the JSON Schema for kconfig-audit policy overlay files, reusing the shared rule definitions in rule.yml, and updates the neutral rule description to mention overlays. > diff --git a/tools/kconfig-audit/schema/policy-overlay-v1.yml b/tools/kconfig-audit/schema/policy-overlay-v1.yml > new file mode 100644 > index 0000000000000..d95e9197a53c5 > --- /dev/null > +++ b/tools/kconfig-audit/schema/policy-overlay-v1.yml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +"$schema": "https://json-schema.org/draft-07/schema#" > + > +title: kconfig-audit policy schema [Severity: Low] This title matches policy-v1.yml; should it be "kconfig-audit policy overlay schema"? [ ... ] > + rules: > + type: array > + minItems: 1 > + items: > + allOf: > + - $ref: "rule.yml#/definitions/rule" [Severity: Low] Can an overlay rule entry pass validation with only name or name_pattern and no override fields? definitions.rule in rule.yml only requires name or name_pattern and leaves all override fields optional. Since audit.py relies on the schema rather than re-validating during parsing, a selector-only rule (such as forgetting expected: neutral) silently becomes a no-op against an existing base rule. Adding minProperties: 2 alongside the rule $ref in allOf would reject selector-only entries. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261203224916.118064-1-darwi@linutronix.de?part=6
Technical Details
Message-ID:
<O6KzE-g1p2-47@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O6o65-fPfD-3@gated-at.bofh.it> <O6o65-fPfD-27@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: sashiko-bot@kernel.org Newsgroups: linux.debian.kernel,linux.kernel Subject: Re: [PATCH v2 06/11] kconfig-audit: Introduce policy overlays schema Date: Sat, 05 Dec 2026 00:10:02 +0100 Message-ID: <O6KzE-g1p2-47@gated-at.bofh.it> References: <O6o65-fPfD-3@gated-at.bofh.it> <O6o65-fPfD-27@gated-at.bofh.it> X-Mailbox-Line: From debian-kernel-request@lists.debian.org Fri Dec 4 23:06:53 2026 Old-Return-Path: <sashiko-bot@kernel.org> X-Amavis-Spam-Status: No, score=-4.401 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 Reply-To: sashiko-reviews@lists.linux.dev Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/158753 List-ID: <debian-kernel.lists.debian.org> List-URL: <https://lists.debian.org/debian-kernel/> List-Archive: https://lists.debian.org/msgid-search/sashiko-outbox-250778@kernel.org Approved: robomod@news.nic.it Lines: 57 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: "Sebastian Andrzej Siewior" <bigeasy@linutronix.de>, "Frederic Weisbecker" <frederic@kernel.org>, "John Ogness" <john.ogness@linutronix.de>, "Derek Barbosa" <debarbos@redhat.com>, Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>, "Daan De Meyer" <daan.j.demeyer@gmail.com>, "Luca Boccassi" <luca.boccassi@gmail.com>, linux-rt-devel@lists.linux.dev, debian-kernel@lists.debian.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org X-Original-Date: Fri, 04 Dec 2026 22:50:14 +0000 X-Original-Message-ID: <sashiko-outbox-250778@kernel.org> X-Original-References: <20261203224916.118064-1-darwi@linutronix.de> <20261203224916.118064-7-darwi@linutronix.de>