feat(kernel): Canonical Livepatch's status as root for the kernel facts, 0.22.0 (NetOrk/netork#2701) #90

Merged
christianmanivong merged 3 commits from feature/live-kernel-patches into main 2026-11-28 10:28:50 +00:00
Owner

Stacked on #89 (feature/host-logins, 0.21.0). Merge #89 first.

The kernel facts carry the kernel's live patches through napalm-device-types 4.52.0 (NAPALM/napalm-device-types feature/live-kernel-patches). Where Canonical Livepatch's status does not read without root, _run_livepatch_status_command reads it again through the driver's sudo (_run_privileged). It is one fixed, read-only command that reads no stdin. It rides along in _readings.py, so linux.py does not grow. OpenMediaVault and QNAP get it through LinuxDriver.

Depends on napalm-device-types>=4.52.0. Tests: TestCanonicalLivepatchAsRoot in tests/test_linux.py; the whole of tests/test_linux.py is green (212).

Version: 0.22.0, the next after this stack's 0.21.0. NAPALM/napalm-linux#88 still claims 0.20.0 and is to be renumbered by whoever merges it.

**Stacked on #89** (`feature/host-logins`, 0.21.0). Merge #89 first. The kernel facts carry the kernel's live patches through napalm-device-types 4.52.0 (NAPALM/napalm-device-types `feature/live-kernel-patches`). Where Canonical Livepatch's status does not read without root, `_run_livepatch_status_command` reads it again through the driver's sudo (`_run_privileged`). It is one fixed, read-only command that reads no stdin. It rides along in `_readings.py`, so `linux.py` does not grow. OpenMediaVault and QNAP get it through `LinuxDriver`. Depends on `napalm-device-types>=4.52.0`. Tests: `TestCanonicalLivepatchAsRoot` in `tests/test_linux.py`; the whole of `tests/test_linux.py` is green (212). Version: 0.22.0, the next after this stack's 0.21.0. NAPALM/napalm-linux#88 still claims 0.20.0 and is to be renumbered by whoever merges it.
christianmanivong added 4 commits 2026-11-28 04:02:22 +00:00
The transport runs the shared, read-only command on an exec channel, as root
first for the lock, the expiry and the failed logins, and as the login user
where root is refused.
chore(release): 0.21.0
driver / standard (pull_request) Successful in 18s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Failing after 58s
driver / test (3.12) (pull_request) Failing after 49s
driver / test (3.13) (pull_request) Failing after 40s
driver / lowest (pull_request) Failing after 23s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Failing after 1m1s
CI / driver (pull_request) Failing after 2m23s
driver / publish (pull_request) Skipped
e0c083e0c0
Where the status does not read without root, the kernel facts read it again
through the driver's sudo: one fixed, read-only command.
chore(release): 0.22.0
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 13s
driver / test (3.12) (pull_request) Failing after 45s
driver / types (pull_request) Failing after 51s
driver / test (3.13) (pull_request) Failing after 42s
driver / lowest (pull_request) Failing after 20s
driver / build (pull_request) Successful in 31s
driver / security (pull_request) Failing after 1m3s
CI / driver (pull_request) Failing after 2m19s
driver / publish (pull_request) Skipped
5132cd5965
christianmanivong added 2 commits 2026-11-28 07:35:11 +00:00
chore(release): 0.21.0 needs napalm-device-types 4.51.0, where LoginAccountsMixin landed
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / test (3.13) (pull_request) Successful in 53s
driver / lowest (pull_request) Successful in 28s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 2m38s
driver / publish (pull_request) Skipped
ea1ed65ace
Merge feature/host-logins into feature/live-kernel-patches
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m1s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / test (3.12) (pull_request) Successful in 1m10s
driver / lowest (pull_request) Successful in 29s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 1m5s
CI / driver (pull_request) Successful in 2m21s
driver / publish (pull_request) Skipped
26dc5a44da
0.22.0 needs napalm-device-types 4.52.0, where the live patches landed.
christianmanivong merged commit 8b09d5a713 into main 2026-11-28 10:28:50 +00:00
Sign in to join this conversation.