Kernel: Only allow superuser to halt() the system (#342)

Following the discussion in #334, shutdown must also have root-only
run permissions.
This commit is contained in:
Jesse 2019-07-19 21:08:26 +10:00 committed by Andreas Kling
commit a5d80f7e3b
Notes: sideshowbarker 2024-07-19 13:09:09 +09:00
6 changed files with 31 additions and 10 deletions

View file

@ -203,6 +203,7 @@ public:
int sys$release_shared_buffer(int shared_buffer_id);
int sys$seal_shared_buffer(int shared_buffer_id);
int sys$get_shared_buffer_size(int shared_buffer_id);
int sys$halt();
int sys$reboot();
static void initialize();