summarylogtreecommitdiffstats
path: root/bashhub-server.service
blob: fd4787eceb038c75baed54dd807e60ff2a6f356c (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
[Unit]
Description=private cloud alternative for bashhub-client
Requires=network.target

[Service]
Type=simple
EnvironmentFile=/etc/default/%N
User=bashhub-server
ExecStart=/usr/bin/bashhub-server -a $ADDR --db $DB $REG
Restart=on-failure
BindPaths=/var/lib/%N
CapabilityBoundingSet=
RestrictAddressFamilies=AF_INET AF_INET6
SystemCallArchitectures=native
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectClock=yes
ProtectHostname=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectKernelLogs=yes
ProtectProc=invisible
ProtectSystem=strict
RestrictNamespaces=yes
RestrictSUIDSGID=true
RestrictRealtime=yes
RemoveIPC=yes
SystemCallErrorNumber=EPERM
#SystemCallFilter=@resources
SystemCallFilter=@system-service
UMask=0077

[Install]
WantedBy=multi-user.target