mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
8d0dbdeaac
This change removes the halt and reboot syscalls, and create a new mechanism to change the power state of the machine. Instead of how power state was changed until now, put a SysFS node as writable only for the superuser, that with a defined value, can result in either reboot or poweroff. In the future, a power group can be assigned to this node (which will be the GroupID responsible for power management). This opens an opportunity to permit to shutdown/reboot without superuser permissions, so in the future, a userspace daemon can take control of this node to perform power management operations without superuser permissions, if we enforce different UserID/GroupID on that node. |
||
---|---|---|
.. | ||
POSIX | ||
FB.h | ||
InodeWatcherEvent.h | ||
InodeWatcherFlags.h | ||
KeyCode.h | ||
KResult.h | ||
MousePacket.h | ||
Syscall.h | ||
TimePage.h |