summarylogtreecommitdiffstats
path: root/naiveproxy.service.tmpl
blob: 75faf533e4e5d23f40e14a3d69614c0a71376f71 (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
[Unit]
Description=NaiveProxy Service
After=network-online.target

[Service]

Type=simple
User=naiveproxy
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/naiveproxy ${TMPL_CONFIG_FILE_PATH}

# sandboxing
ProcSubset=pid
ProtectProc=invisible
CapabilityBoundingSet=
NoNewPrivileges=true
ProtectSystem=strict
PrivateTmp=true
PrivateDevices=true
PrivateUsers=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
ProtectHome=true
RestrictAddressFamilies=AF_INET
RestrictAddressFamilies=AF_INET6
RestrictAddressFamilies=AF_NETLINK
RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=true
LockPersonality=true
RestrictRealtime=true
RestrictSUIDSGID=true
RemoveIPC=true
PrivateMounts=true
ProtectClock=true
SystemCallArchitectures=native
SystemCallFilter=~@cpu-emulation @debug @keyring @ipc @mount @obsolete @privileged @setuid
SystemCallFilter=pipe
SystemCallFilter=pipe2

[Install]
WantedBy=default.target

# vim:filetype=systemd