aboutsummaryrefslogtreecommitdiffstats
path: root/dist/scrapbook.service
blob: a4871a98c5e0731212003a22a51c4ff0df10eb74 (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
27
28
29
30
31
32
33
34
35
[Unit]
Description=scrapbook server

[Service]
User=scrapbook
Group=scrapbook
Restart=always
ExecStart=/usr/local/bin/scrapbook

CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM

ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
TemporaryFileSystem=/var:ro /etc:ro
BindReadOnlyPaths=/etc/scrapbook
BindPaths=/var/lib/scrapbook
NoExecPaths=/
ExecPaths=/usr/local/bin/scrapbook

ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectClock=true
RestrictRealtime=true
RestrictSUIDSGID=true

[Install]
WantedBy=multi-user.target