Private
Public Access
1
0

fix: implement actual system reboot via shutdown/systemctl commands

- Fix reboot_system() to use shutdown -r +N for delayed reboots
- Fix patches handler to call reboot_system() instead of just logging
- Add CAP_SYS_BOOT capability to systemd service for LXC reboot support
- Remove unused warn import from packages/mod.rs
- Bump version to 0.3.1
This commit is contained in:
2026-05-03 01:37:22 +00:00
parent 2e00f1a160
commit 3e037f2648
7 changed files with 67 additions and 13 deletions

View File

@ -18,6 +18,9 @@ RuntimeDirectoryMode=0755
# Security hardening
NoNewPrivileges=true
# Allow reboot capability for scheduled reboots
CapabilityBoundingSet=CAP_SYS_BOOT
AmbientCapabilities=CAP_SYS_BOOT
# ProtectSystem removed - package management requires write access to /usr, /etc, /lib
# Network security provided by mTLS + IP whitelist
ProtectHome=true