reactos/ntoskrnl/se
George Bișoc 51279c3e44
[NTOS:SE] Refactor NtOpenThreadTokenEx
- Wrap most of the code into a new private routine, SepOpenThreadToken.
And properly fail gracefully if we fail to open a thread's token instead of just keeping going.

- Do not use the same thread object that we have referenced in NtOpenThreadTokenEx
to do a copy of the access token in case we can't open it directly.
Instead we must reference a new object with full access, solely used for
the purpose to do our required operations.

- Add debug prints

CORE-18986
2023-06-04 11:09:34 +02:00
..
access.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
accesschk.c [NTOS:SE] Do not allocate memory pool just for the access rights 2023-03-07 17:50:39 +01:00
acl.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
audit.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
client.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
debug.c [NTOS:SE] Do not allocate memory pool just for the access rights 2023-03-07 17:50:39 +01:00
objtype.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
priv.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
sd.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
semgr.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
sid.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
sqos.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
srm.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
subject.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
token.c [NTOS:SE] Refactor NtOpenThreadTokenEx 2023-06-04 11:09:34 +02:00
tokenadj.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
tokencls.c [NTOS:SE][FORMATTING] Fix the file header 2023-03-07 18:39:46 +01:00
tokenlif.c [NTOS:SE] Make an access token effective after the end of token duplication 2023-06-04 11:09:22 +02:00