https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eba68ffb9ccf0681e9f08…
commit eba68ffb9ccf0681e9f08a3dbdccf6495b25c5f3
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sat Mar 13 20:45:15 2021 +0100
Commit: Victor Perevertkin <victor(a)perevertkin.ru>
CommitDate: Thu Mar 25 02:30:46 2021 +0300
[NTOS:SE] Specify the code section of SepCreateSystemProcessToken as INIT
This function is used during the Security kernel module phase initialisation to set up the system process token which the phase initialisation procedure in itself is stored in the INIT section. With that being said, do the same for SepCreateSystemProcessToken too and add a header documentation as an addition.
---
ntoskrnl/se/token.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ntoskrnl/se/token.c b/ntoskrnl/se/token.c
index bd56397225f..31601411b07 100644
--- a/ntoskrnl/se/token.c
+++ b/ntoskrnl/se/token.c
@@ -1389,6 +1389,15 @@ Quit:
return Status;
}
+/**
+ * @brief
+ * Creates the system process token.
+ *
+ * @return
+ * Returns the system process token if the operations have
+ * completed successfully.
+ */
+CODE_SEG("INIT")
PTOKEN
NTAPI
SepCreateSystemProcessToken(VOID)