Liav A
8d0dbdeaac
Kernel+Userland: Introduce a new way to reboot and poweroff the machine
...
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.
2021-09-12 11:52:16 +02:00
..
2021-09-12 11:52:16 +02:00
2021-09-12 11:52:16 +02:00
2021-09-12 11:52:16 +02:00
2021-09-12 11:52:16 +02:00
2021-09-12 11:52:16 +02:00
2021-09-12 11:52:16 +02:00
2021-09-11 11:41:14 +02:00
2021-09-06 01:55:27 +02:00
2021-09-12 11:52:16 +02:00
2021-09-07 22:16:25 +02:00
2021-09-10 18:05:46 +03:00
2021-09-11 02:34:55 +02:00
2021-09-10 18:05:46 +03:00
2021-09-08 04:23:17 +00:00
2021-09-11 11:41:14 +02:00
2021-09-12 11:52:16 +02:00
2021-09-07 13:53:14 +02:00
2021-09-12 11:52:16 +02:00
2021-09-11 11:41:14 +02:00
2021-08-04 11:01:16 +02:00
2021-07-27 13:15:16 +02:00
2021-09-12 11:52:16 +02:00
2021-09-10 22:01:23 +02:00
2021-09-09 21:25:10 +02:00
2021-09-11 11:41:14 +02:00
2021-09-08 00:42:20 +02:00
2021-09-09 21:25:10 +02:00
2021-09-07 13:53:14 +02:00
2021-08-28 20:53:38 +02:00
2021-09-07 16:00:39 +02:00
2021-09-07 13:53:14 +02:00
2021-09-08 00:42:20 +02:00
2021-08-24 01:57:11 +02:00
2021-08-24 01:57:11 +02:00
2021-09-11 19:05:00 +02:00
2021-09-12 11:52:16 +02:00
2021-09-08 20:16:00 +02:00
2021-09-07 15:54:23 +02:00
2021-09-08 20:16:00 +02:00
2021-09-06 19:25:36 +02:00
2021-09-06 19:25:36 +02:00
2021-09-10 22:58:08 +03:00
2021-09-10 22:58:08 +03:00
2021-09-06 19:25:36 +02:00
2021-09-07 01:18:02 +02:00
2021-09-07 13:53:14 +02:00
2021-08-04 20:14:54 +02:00
2021-07-27 13:15:16 +02:00
2021-09-07 20:15:15 +01:00
2021-07-29 10:38:31 +02:00
2021-07-27 13:15:16 +02:00
2021-09-07 13:16:01 +02:00
2021-09-07 22:16:25 +02:00
2021-09-07 22:16:25 +02:00
2021-08-10 21:55:48 +02:00
2021-09-11 19:05:00 +02:00
2021-09-12 11:52:16 +02:00
2021-09-07 15:54:23 +02:00
2021-09-07 13:53:14 +02:00
2021-09-06 01:55:27 +02:00
2021-09-10 18:05:46 +03:00
2021-09-07 13:53:14 +02:00
2021-09-07 22:16:25 +02:00
2021-09-01 18:06:14 +02:00
2021-09-06 01:53:26 +02:00
2021-08-04 19:53:04 +02:00
2021-08-04 19:53:04 +02:00
2021-09-06 01:55:27 +02:00
2021-09-10 18:05:46 +03:00
2021-08-22 03:34:10 +02:00
2021-07-27 13:15:16 +02:00
2021-09-07 01:18:02 +02:00
2021-09-07 01:18:02 +02:00
2021-09-05 09:48:43 +01:00
2021-09-07 13:53:14 +02:00
2021-09-10 18:05:46 +03:00
2021-09-07 13:53:14 +02:00
2021-09-07 14:48:13 +02:00
2021-09-07 22:16:25 +02:00
2021-09-10 18:05:46 +03:00
2021-08-14 19:58:11 +02:00
2021-09-07 13:53:14 +02:00
2021-09-07 13:53:14 +02:00
2021-08-25 12:12:59 +02:00
2021-08-24 01:57:11 +02:00
2021-08-24 01:57:11 +02:00
2021-09-07 13:53:14 +02:00
2021-09-10 18:05:46 +03:00