summarylogtreecommitdiffstats
path: root/service
blob: 081ebad2aa3dff12677d137b2033e7cba195cbdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=Google Safe Browsing API
After=network.target

[Install]
WantedBy=multi-user.target

[Service]
EnvironmentFile=/etc/google-safebrowsing/config
User=gsb
ExecStart=/usr/lib/google-safebrowsing/sbserver -srvaddr "$LISTEN" -apikey "$API_KEY" -db /var/lib/google-safebrowsing/db

WorkingDirectory=~
StateDirectory=google-safebrowsing
StateDirectoryMode=0750
Restart=on-failure

# Hardening
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectHome=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
ProtectSystem=full