feat(hardening): how a Linux host is hardened, as one read-only reading, 4.48.0 (NetOrk/netork#2706) #136

Merged
christianmanivong merged 4 commits from feature/hardening-reading into main 2026-11-28 01:44:02 +00:00
4 Commits
Author SHA1 Message Date
christianmanivong c93ceeb320 Merge NAPALM/napalm-device-types main (4.47.0) into feature/hardening-reading
driver / standard (pull_request) Successful in 30s
driver / lint (pull_request) Successful in 59s
driver / types (pull_request) Successful in 2m12s
driver / test (3.12) (pull_request) Successful in 2m16s
driver / lowest (pull_request) Successful in 39s
driver / test (3.13) (pull_request) Successful in 1m26s
driver / build (pull_request) Successful in 39s
driver / security (pull_request) Successful in 1m18s
CI / driver (pull_request) Successful in 5m3s
driver / publish (pull_request) Skipped
4.47.0 (#135) is released; this branch stays 4.48.0, its changelog section
above 4.47.0's.
2026-11-27 05:52:44 +01:00
christianmanivong 594cc5e486 refactor(hardening): the SELinux part as three small questions (NetOrk/netork#2706)
driver / lint (pull_request) Successful in 17s
driver / standard (pull_request) Successful in 19s
driver / types (pull_request) Successful in 1m1s
driver / test (3.13) (pull_request) Successful in 1m12s
driver / test (3.12) (pull_request) Successful in 1m19s
driver / lowest (pull_request) Successful in 39s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m0s
CI / driver (pull_request) Successful in 2m31s
driver / publish (pull_request) Skipped
_selinux_configured, _selinux_running and _selinux_seen, each on its own, so
_selinux stays within napalm-standard's complexity limit. The parse is
unchanged.
2026-11-27 01:45:12 +01:00
christianmanivong e440bee9e1 chore(release): 4.48.0
driver / standard (pull_request) Failing after 16s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 56s
driver / test (3.12) (pull_request) Successful in 1m16s
driver / test (3.13) (pull_request) Successful in 1m7s
driver / lowest (pull_request) Successful in 40s
driver / build (pull_request) Successful in 29s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Failing after 2m48s
driver / publish (pull_request) Skipped
2026-11-26 23:13:28 +01:00
christianmanivong 3cd0e3621a feat(hardening): how a Linux host is hardened, as one read-only reading (NetOrk/netork#2706)
HardeningMixin.get_hardening() reads, with one fixed command: the active
security modules, SELinux's mode and its configured mode, AppArmor's switch
and (as root) its profiles per mode, the crypto policy and FIPS mode, the
kernel's text for each CPU vulnerability, mitigations= and nosmt from the
command line, and the distribution's IDs. Read as root first, as the login
user where root is refused. What was not read is None, never off.
2026-11-26 23:11:57 +01:00