Cedar/Admin.c: Restrict StGetProtoOptions() access to server administrators

This is in order to protect the WireGuard private key.
This commit is contained in:
Davide Beatrici committed 2021-03-01 02:49:59 +01:00
1 parent a8580458c4
commit ef24ff74c8
1 file changed
+2
+2
View File
@@ -10171,6 +10171,8 @@ UINT StGetProtoOptions(ADMIN *a, RPC_PROTO_OPTIONS *t)
UINT ret = ERR_NO_ERROR;
LIST *options;
SERVER_ADMIN_ONLY;
if (proto == NULL)
{
return ERR_NOT_SUPPORTED;