aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/errors.go
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2019-05-14 10:01:07 +0200
committerOdd Stranne <odd@mullvad.net>2019-05-14 15:29:22 +0200
commitb45e9763a5a9b4bf2dc10121afa5e2a643ec815b (patch)
tree10bd24c20ce5da83f5225d09b017f5338ff6f0e5 /service/errors.go
parentservice: replace GetIfEntry2Ex with GetIfEntry2 (diff)
downloadwireguard-windows-b45e9763a5a9b4bf2dc10121afa5e2a643ec815b.tar.xz
wireguard-windows-b45e9763a5a9b4bf2dc10121afa5e2a643ec815b.zip
service: drop all privileges for tunnel service
Signed-off-by: Odd Stranne <odd@mullvad.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/errors.go')
-rw-r--r--service/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/errors.go b/service/errors.go
index 339b61b3..b76ef656 100644
--- a/service/errors.go
+++ b/service/errors.go
@@ -30,6 +30,7 @@ const (
ErrorOpenNULFile
ErrorTrackTunnels
ErrorEnumerateSessions
+ ErrorDropPrivileges
ErrorWin32
)
@@ -65,6 +66,8 @@ func (e Error) Error() string {
return "Unable to track existing tunnels"
case ErrorEnumerateSessions:
return "Unable to enumerate current sessions"
+ case ErrorDropPrivileges:
+ return "Unable to drop privileges"
case ErrorWin32:
return "An internal Windows error has occurred"
default: