1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/archweb/templates/archweb-mirrorresolv.service.j2
Jelle van der Waa 9ffdb6836b archweb: harden mirror related further
Add some new systemd hardening features to network related services.
2019-11-15 22:51:24 +01:00

27 lines
520 B
Django/Jinja

[Unit]
Description=archweb mirrorresolv service
After=network.target
[Service]
Type=oneshot
User=archweb
WorkingDirectory={{ archweb_dir }}
ExecStart={{ archweb_dir }}/env/bin/python manage.py mirrorresolv
Nice=5
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
ProtectHostname=true
RestrictRealtime=true
CapabilityBoundingSet=
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target