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
commit32103fcd4fcc5cf1b8ab448c6987ec12aba0dbca (patch)
tree10bd24c20ce5da83f5225d09b017f5338ff6f0e5 /service/errors.go
parentservice: replace GetIfEntry2Ex with GetIfEntry2 (diff)
downloadwireguard-windows-32103fcd4fcc5cf1b8ab448c6987ec12aba0dbca.tar.xz
wireguard-windows-32103fcd4fcc5cf1b8ab448c6987ec12aba0dbca.zip
service: drop all privileges for tunnel service
Signed-off-by: Odd Stranne <odd@mullvad.net>
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: