From: Jonathan Lebon Date: Tue, 6 Feb 2024 15:27:34 +0000 (-0500) Subject: admin/state-overlay: Require root and don't lock sysroot X-Git-Tag: archive/raspbian/2024.8-1+rpi1^2~7^2~6^2~4^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=31b804f20d2265d9c8ec806665841688b3eecfbc;p=ostree.git admin/state-overlay: Require root and don't lock sysroot Not required for anything in particular, but it's good to use the right flags here anyway. --- diff --git a/src/ostree/ot-admin-builtin-state-overlay.c b/src/ostree/ot-admin-builtin-state-overlay.c index edcd14f8..7bf386c4 100644 --- a/src/ostree/ot-admin-builtin-state-overlay.c +++ b/src/ostree/ot-admin-builtin-state-overlay.c @@ -243,8 +243,9 @@ ot_admin_builtin_state_overlay (int argc, char **argv, OstreeCommandInvocation * /* First parse the args without loading the sysroot to see what options are * set. */ if (!ostree_admin_option_context_parse (context, options, &argc, &argv, - OSTREE_ADMIN_BUILTIN_FLAG_NONE, invocation, &sysroot, - cancellable, error)) + OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER + | OSTREE_ADMIN_BUILTIN_FLAG_UNLOCKED, + invocation, &sysroot, cancellable, error)) return FALSE; if (argc < 3)