summarylogtreecommitdiffstats
path: root/muse-hub.service
blob: 718a6e40ba268ea717fe418bb64fe555598cb352 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[Unit]
Description=Muse Hub Helper Service
After=network.target

StartLimitBurst=3
StartLimitIntervalSec=20

[Service]
Type=simple
ExecStart=/usr/bin/muse-hub-service
Restart=always
RestartSec=5
WorkingDirectory=/opt/muse-hub

ReadWritePaths=/tmp /srv/muse-hub /var/lib/MuseSampler

TemporaryFileSystem=/opt:ro /srv:rw
BindReadOnlyPaths=/opt/muse-hub
BindPaths=-/srv/muse-hub -/var/lib/MuseSampler /usr/lib /tmp

NoNewPrivileges=yes
PrivateTmp=no
PrivateDevices=yes
PrivateUsers=yes
PrivateMounts=yes
DevicePolicy=closed

ProtectSystem=strict
ProtectHome=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
ProtectHostname=yes
ProtectProc=noaccess

RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes

CapabilityBoundingSet=
AmbientCapabilities=

MemoryDenyWriteExecute=no
LockPersonality=yes

IPAddressDeny=10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 100.64.0.0/10 fc00::/7 fd00::/8 fec0::/10 localhost link-local multicast

[Install]
WantedBy=multi-user.target