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-memcached.service.j2
Jelle van der Waa 4489a97c29 archweb: harden memcached service further
Don't allow new priviliges, disallow changing kernel tunables/loading
modules and setting cgroups.
2018-11-21 21:59:19 +01:00

23 lines
475 B
Django/Jinja

[Unit]
Description=Archweb Memcached Daemon
After=network.target
[Service]
User=archweb
Group=memcached
# Remove '-l 127.0.0.1' to listen on all addresses
ExecStart=/usr/bin/memcached -s /run/memcached/archweb.sock -o modern
Restart=always
NoNewPrivileges=yes
PrivateTmp=yes
ProtectHome=true
PrivateDevices=yes
ProtectSystem=full
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
MemoryDenyWriteExecute=yes
[Install]
WantedBy=multi-user.target