From eba68ffb9ccf0681e9f08a3dbdccf6495b25c5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Sat, 13 Mar 2021 20:45:15 +0100 Subject: [PATCH] [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)