reactos/ntoskrnl/se
George Bișoc 3b00f98b94
[NTOS:SE] Fix new dynamic length calculation in TokenPrimaryGroup case
Not only primary group assignation was broken but new dynamic length calculation is also broken. The length of the captured SID is not taken into account so the new dynamic length gets only the size of the default ACL present in an access token.
Therefore, the condition is always FALSE and the code never jumps to the STATUS_ALLOTTED_SPACE_EXCEEDED branch because the length will always be small than the charged dynamic length.

Addendum to 86bde3c.
2022-08-16 20:27:27 +02:00
..
access.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
accesschk.c [NTOS:SE] Deny access to the caller if access is not allowed by the object 2022-05-06 10:09:53 +02:00
acl.c [NTOS:SE] SepCaptureAcl(): Add missing validation of the captured ACL (#4523) 2022-05-23 19:30:34 +02:00
audit.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
client.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
objtype.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
priv.c [NTOS:SE] Assign the captured SID and/or privileges to NULL manually on token filtering 2022-02-10 09:51:58 +01:00
sd.c [NTOS:SE] SeValidSecurityDescriptor(): Add missing validation aspects (#4523) 2022-05-23 19:30:33 +02:00
semgr.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
sid.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
sqos.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
srm.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
subject.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
token.c [NTOS:SE] Properly handle dynamic counters in token 2022-06-29 10:06:37 +02:00
tokenadj.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02:00
tokencls.c [NTOS:SE] Fix new dynamic length calculation in TokenPrimaryGroup case 2022-08-16 20:27:27 +02:00
tokenlif.c [NTOS:SE] Properly handle dynamic counters in token 2022-06-29 10:06:37 +02:00