Skip to content

wiztool: shutdown ungated while reboot requires FULL_ACCESS #15

Description

@ChristopherA

In src/kernel/lib/wiztool.c, cmd_reboot() checks access(owner, "/", FULL_ACCESS) before acting, but cmd_shutdown() performs shutdown() with no access check (lines ~2254-2285). Any user with wiztool access can halt the system, while rebooting -- arguably the less destructive operation, since it snapshots first -- is gated.

Is the asymmetry intentional? If not, gating cmd_shutdown the same way as cmd_reboot seems consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion or suggestion.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions