Collect Ubuntu Livepatch status in the agent
CI / tests (Python 3.10) (pull_request) Successful in 22s
CI / tests (Python 3.11) (pull_request) Successful in 22s
CI / tests (Python 3.12) (pull_request) Successful in 21s
CI / tests (Python 3.13) (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 2s

kernelwatch-livepatch.service runs canonical-livepatch as root with no
network and a read-only filesystem, and a small python3 helper keeps the
running kernel's state, check state, support, end-of-support date and fix
count in /run/kernelwatch/livepatch. The agent (0.4.0) reads that file the
way it reads needrestart's and never runs the snap itself.

NoNewPrivileges=yes can't be used: snap-confine fails under it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Sonnet 5.5 committed 2026-10-29 21:37:42 -04:00
1 parent 4fa86de11f
commit b59336d7e2
11 files changed
+273 -8

No files matched your search

+1
View File
@@ -59,6 +59,7 @@ class DeployTest(unittest.TestCase):
for name in ("deploy.sh", "kernelwatch-agent", "kernelwatch-agent.service",
"kernelwatch-agent.timer", "kernelwatch-needrestart.service",
"kernelwatch-livepatch", "kernelwatch-livepatch.service",
"kernelwatch-apt-update.service"):
shutil.copy2(os.path.join(AGENT_DIR, name), self.agent)
write_exec(os.path.join(self.agent, "install.sh"), FAKE_INSTALL)