summarylogtreecommitdiffstats
path: root/sui.service
blob: 797ecf4c62f553d864575dca09dbe24862e51aed (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
[Unit]
Description=Sui Full Node
After=network-online.target

[Service]
ExecStart=/usr/bin/sui-node "$SUI_ARGS"
ReadWritePaths=/var/lib/sui
WorkingDirectory=/var/lib/sui
EnvironmentFile=/etc/default/sui
StandardOutput=inherit
StandardError=inherit
Restart=always
User=sui

CapabilityBoundingSet=
NoNewPrivileges=true
RemoveIPC=true
LockPersonality=true

ProtectControlGroups=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectHostname=true
ProtectProc=noaccess
ProtectClock=yes

RestrictRealtime=true
RestrictSUIDSGID=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6

ProtectSystem=strict
ProtectHome=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target