From fa2211929595ff05d4036ae4450c1182c24a5a48 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 29 Jul 2026 12:26:39 +0100 Subject: [PATCH] sysupdate: Ensure Context is offline by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since being online is a privileged operation, it’s better to fail-safe and make the `Context` offline by default unless explicitly initialised (e.g. with `context_from_cmdline()` or an explicit initialisation of `.offline = false`). There are a few instances where `.offline = true` is set explicitly. I’ve left those in place, even though they’re now redundant, as documentation. Signed-off-by: Philip Withnall (cherry picked from commit 97183383af03279c43d9c270af5832d36d527d01) --- src/sysupdate/sysupdate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sysupdate/sysupdate.c b/src/sysupdate/sysupdate.c index 097e7834dc..53c690b9bc 100644 --- a/src/sysupdate/sysupdate.c +++ b/src/sysupdate/sysupdate.c @@ -94,6 +94,7 @@ COMMAND( .sync = true, \ .instances_max = UINT64_MAX, \ .verify = -1, \ + .offline = true, \ .cleanup = -1, \ .installdb_fd = -EBADF, \ .target_identifier.class = _TARGET_CLASS_INVALID, \