reactos/ntoskrnl/se
George Bișoc b284e82f47
[NTOS:SE] Do not allocate memory pool just for the access rights
Access check is an expensive operation, that is, whenever an access to an
object is performed an access check has to be done to ensure the access
can be allowed to the calling thread who attempts to access such object.

Currently SepAnalyzeAcesFromDacl allocates a block of pool memory for
access check rights, nagging the Memory Manager like a desperate naughty
creep. So instead initialize the access rights as a simple variable in
SepAccessCheck and pass it out as an address to SepAnalyzeAcesFromDacl so
that the function will fill it up with access rights. This helps with
performance, avoiding wasting a few bits of memory just to hold these
access rights.

In addition to that, add a few asserts and fix the copyright header on
both se.h and accesschk.c, to reflect the Coding Style rules.
2023-03-07 17:50:39 +01:00
..
access.c [NTOS:SE] Reorganize the security manager component 2022-05-29 20:22:19 +02: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] 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
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] 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] Add new ACE types for SepGetSidFromAce routine 2022-11-08 18:24:37 +01: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