Skip to content

Run the generated services with lower priority, sandboxing and timeouts - #29

Merged
eniac111 merged 1 commit into
masterfrom
feature/systemd-hardening
Oct 26, 2026
Merged

eniac111 merged 1 commit into
masterfrom
feature/systemd-hardening

Conversation

@eniac111

Copy link
Copy Markdown
Member

The units created by gentimer now:

  • run with Nice=10, batch CPU scheduling and the lowest best-effort I/O priority, so backups do not slow down the services they back up
  • stop backups after 20 hours and prune and check after 12 hours
  • are sandboxed: read-only system and home directories, private /tmp, no new privileges; local repositories stay writable through ReadWritePaths, remote ones need no local write access

A new [systemd] section sets nice, io_scheduling_class, backup_timeout, maintenance_timeout, extra read_write_paths and hardening = false. Time spans are validated like systemd does. The gentimer integration test runs systemd-analyze verify on the generated units.

The units created by gentimer now:
- run with Nice=10, batch CPU scheduling and the lowest best-effort I/O
  priority, so backups do not slow down the services they back up
- stop backups after 20 hours and prune and check after 12 hours
- are sandboxed: read-only system and home directories, private /tmp,
  no new privileges; local repositories stay writable through
  ReadWritePaths, remote ones need no local write access

A new [systemd] section sets nice, io_scheduling_class, backup_timeout,
maintenance_timeout, extra read_write_paths and hardening = false.
Time spans are validated like systemd does. The gentimer integration
test runs systemd-analyze verify on the generated units.

Signed-off-by: Blagovest Petrov <blagovest@petrovs.info>
@eniac111
eniac111 merged commit 50e50b0 into master Oct 26, 2026
2 checks passed
@eniac111
eniac111 deleted the feature/systemd-hardening branch October 26, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant