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.
In
src/kernel/lib/wiztool.c,cmd_reboot()checksaccess(owner, "/", FULL_ACCESS)before acting, butcmd_shutdown()performsshutdown()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_shutdownthe same way ascmd_rebootseems consistent.