1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

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
parent cd76b691fb
commit a5d80f7e3b
6 changed files with 31 additions and 10 deletions

View file

@ -93,6 +93,7 @@ char* getlogin();
int chown(const char* pathname, uid_t, gid_t);
int fchown(int fd, uid_t, gid_t);
int ftruncate(int fd, off_t length);
int halt();
int reboot();
enum {