a13xp0p0v / kernel-hardening-checker

A tool for checking the security hardening options of the Linux kernel
GNU General Public License v3.0
1.69k stars 156 forks source link

Which Python versions should `kernel-hardening-checker` support? #133

Closed a13xp0p0v closed 2 months ago

a13xp0p0v commented 6 months ago

The CI scripts of kernel-hardening-checker run on Python versions that are currently officially supported: CI Python versions (from https://devguide.python.org/versions/)

Question Should kernel-hardening-checker also work on some older Python versions? Is it needed on old machines? What do you think?

jvoisin commented 6 months ago

I don't think that kernel-hardening-checker depends on ultra-modern python features, so supporting old-ish-but-still-maintained python version shouldn't add any overhead.

egberts commented 4 months ago

os.path is going away soon. pathlib.Path is the new "path"

jvoisin commented 4 months ago

os.path isn't going anywhere soon, according to the documentation

a13xp0p0v commented 3 months ago

from __future__ import annotations is supported since Python 3.7. It is used in ./kernel_hardening_checker/engine.py.

a13xp0p0v commented 3 months ago

Assignment expression or "walrus operator” NAME := expr has been supported since Python 3.8. It is used in ./kernel_hardening_checker/__init__.py.

a13xp0p0v commented 2 months ago

Closing this question for now. Supporting Python starting from v3.8 looks reasonable.