diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-06 21:31:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 21:31:19 +0900 |
commit | 042526868a0a9c88a1e264c7de8c5550fb59f990 (patch) | |
tree | 25314913ee084297a73f0aac15ef5228a427f039 /src/boot/bootctl.c | |
parent | c0d11245d2bdcf2a4333c3d49c973d83dfbe3791 (diff) | |
parent | 97afc0351a96e0daa83964df33937967c75c644f (diff) | |
download | systemd-042526868a0a9c88a1e264c7de8c5550fb59f990.tar.gz |
Merge pull request #12508 from keszybz/no-root-checks
Drop many root checks
Diffstat (limited to 'src/boot/bootctl.c')
-rw-r--r-- | src/boot/bootctl.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 55924adf06..e7ba8b4ab9 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -1435,16 +1435,15 @@ static int verb_set_default(int argc, char *argv[], void *userdata) { } static int bootctl_main(int argc, char *argv[]) { - static const Verb verbs[] = { - { "help", VERB_ANY, VERB_ANY, 0, help }, - { "status", VERB_ANY, 1, VERB_DEFAULT, verb_status }, - { "install", VERB_ANY, 1, VERB_MUST_BE_ROOT, verb_install }, - { "update", VERB_ANY, 1, VERB_MUST_BE_ROOT, verb_install }, - { "remove", VERB_ANY, 1, VERB_MUST_BE_ROOT, verb_remove }, - { "list", VERB_ANY, 1, 0, verb_list }, - { "set-default", 2, 2, VERB_MUST_BE_ROOT, verb_set_default }, - { "set-oneshot", 2, 2, VERB_MUST_BE_ROOT, verb_set_default }, + { "help", VERB_ANY, VERB_ANY, 0, help }, + { "status", VERB_ANY, 1, VERB_DEFAULT, verb_status }, + { "install", VERB_ANY, 1, 0, verb_install }, + { "update", VERB_ANY, 1, 0, verb_install }, + { "remove", VERB_ANY, 1, 0, verb_remove }, + { "list", VERB_ANY, 1, 0, verb_list }, + { "set-default", 2, 2, 0, verb_set_default }, + { "set-oneshot", 2, 2, 0, verb_set_default }, {} }; |