summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-03-05 19:07:45 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-03-07 11:50:54 +0100
commit2bcd8c49e2ed3f59e3988540102f7cd58236a5a7 (patch)
tree395ed60fa1ffd06eaa08e53b8ee8467331e02aa3 /app
parenteca87471d2653fe732b3fd021f180e6ca6b6589a (diff)
downloadmullvadvpn-2bcd8c49e2ed3f59e3988540102f7cd58236a5a7.tar.xz
mullvadvpn-2bcd8c49e2ed3f59e3988540102f7cd58236a5a7.zip
Correct well known sid check for RPC file
Currently rpc file owner is identified as `Builtin/Administrators` when running backend under `nt authority\system`
Diffstat (limited to 'app')
-rw-r--r--app/lib/rpc-file-security.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/rpc-file-security.js b/app/lib/rpc-file-security.js
index 22dedb00be..eb1901f67f 100644
--- a/app/lib/rpc-file-security.js
+++ b/app/lib/rpc-file-security.js
@@ -27,7 +27,7 @@ function isOwnedByLocalSystem(path: string): boolean {
// $FlowFixMe: this module is only available on Windows
const winsec = require('windows-security');
const ownerSid = winsec.getFileOwnerSid(path, null);
- const isWellKnownSid = winsec.isWellKnownSid(ownerSid, winsec.WellKnownSid.LocalSystemSid);
+ const isWellKnownSid = winsec.isWellKnownSid(ownerSid, winsec.WellKnownSid.BuiltinAdministratorsSid);
return isWellKnownSid;
} \ No newline at end of file