[NTOS:SE] Implement effective token option upon duplication
authorGeorge Bișoc <george.bisoc@reactos.org>
Tue, 31 Aug 2021 10:34:25 +0000 (12:34 +0200)
committerGeorge Bișoc <george.bisoc@reactos.org>
Sun, 5 Sep 2021 15:01:21 +0000 (17:01 +0200)
commitc407460f6af9e6d10913c48616646e2aa2e3f6b6
tree811a9dd63c14116d360f73edfe4cf8c7edd686ae
parent1105b021b3f4aac2c4db43f9e67937a43f64e5af
[NTOS:SE] Implement effective token option upon duplication

This implements the EffectiveOnly option of SepDuplicateToken routine (used by NtDuplicateToken syscall and other functions alike) which makes the access token effective by removing the disabled parts like privileges and groups.
ntoskrnl/se/token.c