reactos/ntoskrnl/se
George Bișoc f483e42f89
[NTOS:SE] Grant the SYSTEM process the missing privileges
- Add the missing privileges to the SYSTEM privileges which might be needed,
notably SeUndockPrivilege, SeManageVolumePrivilege, SeCreateGlobalPrivilege and
SeImpersonatePrivilege.

Specifically SeImpersonatePrivilege is important here because with it we
allow system components of the core OS to perform certain system tasks.

- Declare the Groups array with a maximum of 3 elements in SepCreateSystemProcessToken
and 1 element in SepCreateSystemAnonymousLogonToken respectively, because previously
this array was oversized with most of free space left as a waste.

- Avoid hardcoding the size value of the Privilege array, instead initialize it
by hand and compute the exact number of elements with RTL_NUMBER_OF.
2023-06-09 11:53:51 +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] Grant the SYSTEM process the missing privileges 2023-06-09 11:53:51 +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