projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7404131
)
admin/state-overlay: Require root and don't lock sysroot
author
Jonathan Lebon
<jonathan@jlebon.com>
Tue, 6 Feb 2024 15:27:34 +0000
(10:27 -0500)
committer
Jonathan Lebon
<jonathan@jlebon.com>
Tue, 6 Feb 2024 15:27:34 +0000
(10:27 -0500)
Not required for anything in particular, but it's good to use the right
flags here anyway.
src/ostree/ot-admin-builtin-state-overlay.c
patch
|
blob
|
history
diff --git
a/src/ostree/ot-admin-builtin-state-overlay.c
b/src/ostree/ot-admin-builtin-state-overlay.c
index edcd14f8c57a0db7d5923a17f48d61908efa3348..7bf386c4a1c282b872ea206682b5004157c02025 100644
(file)
--- 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)