Debian Codegraph @

packaging/usr/lib/systemd/system/openvpn-auth-oauth2.service

raw ◀ ▶
Source reconstructed at patch state 0 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 [Unit]
2 Description=OpenVPN authenticator
3 Documentation=https://github.com/jkroepke/openvpn-auth-oauth2
4 Requires=network-online.target
5 Wants=network-online.target nss-lookup.target openvpn.service
6 After=network-online.target nss-lookup.target basic.target openvpn.service [email protected] [email protected]
7 PartOf=openvpn.service [email protected] [email protected]
8 StartLimitIntervalSec=30
9 StartLimitBurst=3
10
11 [Service]
12 Restart=on-failure
13 RestartSec=30
14 # Run as an unprivileged user with random user id.
15 DynamicUser=true
16 User=openvpn-auth-oauth2-dynamic
17 Group=openvpn-auth-oauth2-dynamic
18 SupplementaryGroups=openvpn-auth-oauth2
19
20 ExecStart=/usr/bin/openvpn-auth-oauth2 --config ${OPENVPN_AUTH_OAUTH2_CONFIG_FILE}
21 NoExecPaths=/
22 ExecPaths=/usr/bin/openvpn-auth-oauth2 /usr/bin/env /usr/bin/kill
23 ExecReload=/usr/bin/env kill -USR1 $MAINPID
24 Environment=OPENVPN_AUTH_OAUTH2_CONFIG_FILE=/etc/openvpn-auth-oauth2/config.yaml
25 EnvironmentFile=-/etc/sysconfig/openvpn-auth-oauth2
26 #LoadCredential=openvpn-auth-oauth2:/etc/openvpn-auth-oauth2/
27 #ConfigurationDirectory=openvpn-auth-oauth2
28 #ConfigurationDirectoryMode=0750
29 RuntimeDirectory=openvpn-auth-oauth2
30 ReadWritePaths=-/run/openvpn -/run/openvpn-server
31
32 # We don't need write access anywhere.
33 AmbientCapabilities=
34 CapabilityBoundingSet=
35 MemoryDenyWriteExecute=true
36 NoNewPrivileges=true
37 LockPersonality=true
38 PrivateDevices=true
39 PrivateTmp=true
40 PrivateUsers=true
41 ProcSubset=pid
42 ProtectClock=true
43 ProtectControlGroups=true
44 ProtectHome=true
45 ProtectHostname=true
46 ProtectKernelLogs=true
47 ProtectKernelModules=true
48 ProtectKernelTunables=true
49 ProtectProc=noaccess
50 ProtectSystem=strict
51 RemoveIPC=true
52 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
53 RestrictNamespaces=true
54 RestrictRealtime=true
55 RestrictSUIDSGID=true
56 SystemCallArchitectures=native
57 SystemCallFilter=@io-event @file-system @basic-io @system-service
58 SystemCallFilter=~@clock @debug @module @mount @obsolete @privileged @reboot @resources @setuid @swap
59 SystemCallErrorNumber=EPERM
60 UMask=0027
61
62 [Install]
63 WantedBy=multi-user.target