40 lines
1.1 KiB
Desktop File
40 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=Morphit journald disk-usage monitor
|
|
Documentation=https://git.agorise.net/agorise/morphit
|
|
After=network-online.target systemd-journald.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# journalctl --disk-usage queries journald via D-Bus; requires
|
|
# permission to read /run/log/journal. Running as root.
|
|
User=root
|
|
Group=root
|
|
|
|
EnvironmentFile=-/etc/morphit/journald-monitor.env
|
|
ExecStart=/opt/morphit/ops/scripts/morphit-journald-monitor.sh
|
|
|
|
# ─── Hardening ─────────────────────────────────────────────────
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
NoNewPrivileges=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
ProtectClock=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
LimitCORE=0
|
|
PrivateNetwork=true
|
|
RestrictAddressFamilies=AF_UNIX
|
|
|
|
CapabilityBoundingSet=
|
|
AmbientCapabilities=
|
|
|
|
SystemCallFilter=@system-service
|
|
SystemCallFilter=~@privileged @resources
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|