Replies: 1 comment
-
|
Thanks for this detailed write up on your feature request @samarthbc But one prospective issue that concerns is that of version constraints, derivative distros might have versions that don't map to the versions of base distro the tool might be supporting (and package versions/defaults can differ), which can be risky for “apply” rules. I think a more practical approach could be keep to keep your propsed ID_LIKE field for distro family matching, but for version gated rules we might need an exact match or an explicit compatibility mapping.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
SysHardn detects Linux distro via
/etc/os-releaseand filters rules usingmetadata.distros/metadata.versions. This works well for distros explicitly covered by the rule pack, but many Linux distributions that are derivatives of supported families (Debian-based, RHEL-based, etc.) are not covered because theirIDisn’t listed.Example: Kali Linux (
ID=kali) is Debian-based (ID_LIKE=debian).This proposal is generic (not just Kali): improve support for any distro not explicitly targeted by using an optional/controlled
ID_LIKEcompatibility mechanism.Problem
OSDetector.is_supported()requires distro matches when rules use distro/version constraints.Example: Kali
/etc/os-releaseProposal
Use
ID_LIKEas a compatibility signal (opt-in / controlled)Add an optional compatibility matching mode for Linux rules:
metadata.distrosincludes the exact distro ID, keep current behavior.ID_LIKEvalues only if the rule explicitly opts in, for example with a new rule metadata flag like:This keeps SysHardn conservative by default, while giving rule authors a structured way to include derivative distros.
Improve user-facing visibility
When rules are skipped due to distro mismatch, include clearer context such as:
This helps users understand rule selection and encourages contributions.
Beta Was this translation helpful? Give feedback.
All reactions