Using max level allowed when getting current token
authorHenric Müller <hemuller@microsoft.com>
Tue, 6 Sep 2016 08:08:50 +0000 (10:08 +0200)
committerHenric Müller <hemuller@microsoft.com>
Tue, 6 Sep 2016 08:08:50 +0000 (10:08 +0200)
commitf99d80d3bef736022d4341a9933f391c0fe38fd3
tree0250ec7eedd6b9aa38f8d81f87cddca8806c0867
parentceb298c91e9277124660ac45070d4697d3ad6ede
Using max level allowed when getting current token

Reference source of WindowsIdentity is using `MAXIMUM_ALLOWED`
as desired level by default when getting current token.
Changing to same behaviour to enable duplicate and impersonation
to be made on the token retrieved by GetCurrentToken.
mono/metadata/mono-security.c