mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 13:48:42 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
- accesschk.c: Remove redundant SepAccessCheck/SepAccessCheckEx pair of private functions; instead just rename SepAccessCheckEx into SepAccessCheck and use it directly in the code. NOTE: SepAccessCheck is *incomplete* (in particular it doesn't retrieve the information needed to initialize the 'Privileges' parameter). - sid.c: Comments formatting fix. - token.c: * Finish to implement SeQueryInformationToken . This function is really the same as NtQueryInformationToken but without all the stuff needed for user-mode buffer access protection. * Some code simplifications in NtQueryInformationToken. I need this to fix a "FIXME: Use SeQueryInformationToken" in some code I'm also fixing (& commit later). [NDK]: Fix parameter types and add annotations to RtlCopySidAndAttributesArray. [KMTESTS:NTOS_SE] - Reenable the 'SeQueryInfoToken' test. - Show that SeQueryInformationToken doesn't support 4 token information classes, which are supported only by NtQueryInformationToken. - Fix calling of SeAccessCheck. In particular the 'Privileges' parameter is not allocated by the caller, but instead is allocated by SeAccessCheck *and* returned to the caller (who then must free the buffer using SeFreePrivileges). This fixes the encountered BSODs that leaded to disabling preventively the test in r59178. - Minor code cleaning. svn path=/trunk/; revision=73122
151 lines
6.7 KiB
C
151 lines
6.7 KiB
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
* PURPOSE: Kernel-Mode Test Suite Driver test list
|
|
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
|
|
KMT_TESTFUNC Test_CmSecurity;
|
|
KMT_TESTFUNC Test_Example;
|
|
KMT_TESTFUNC Test_ExCallback;
|
|
KMT_TESTFUNC Test_ExDoubleList;
|
|
KMT_TESTFUNC Test_ExFastMutex;
|
|
KMT_TESTFUNC Test_ExHardError;
|
|
KMT_TESTFUNC Test_ExHardErrorInteractive;
|
|
KMT_TESTFUNC Test_ExInterlocked;
|
|
KMT_TESTFUNC Test_ExPools;
|
|
KMT_TESTFUNC Test_ExResource;
|
|
KMT_TESTFUNC Test_ExSequencedList;
|
|
KMT_TESTFUNC Test_ExSingleList;
|
|
KMT_TESTFUNC Test_ExTimer;
|
|
KMT_TESTFUNC Test_FsRtlDissect;
|
|
KMT_TESTFUNC Test_FsRtlExpression;
|
|
KMT_TESTFUNC Test_FsRtlLegal;
|
|
KMT_TESTFUNC Test_FsRtlMcb;
|
|
KMT_TESTFUNC Test_FsRtlRemoveDotsFromPath;
|
|
KMT_TESTFUNC Test_FsRtlTunnel;
|
|
KMT_TESTFUNC Test_IoCreateFile;
|
|
KMT_TESTFUNC Test_IoDeviceInterface;
|
|
KMT_TESTFUNC Test_IoEvent;
|
|
KMT_TESTFUNC Test_IoFilesystem;
|
|
KMT_TESTFUNC Test_IoInterrupt;
|
|
KMT_TESTFUNC Test_IoIrp;
|
|
KMT_TESTFUNC Test_IoMdl;
|
|
KMT_TESTFUNC Test_KeApc;
|
|
KMT_TESTFUNC Test_KeDeviceQueue;
|
|
KMT_TESTFUNC Test_KeDpc;
|
|
KMT_TESTFUNC Test_KeEvent;
|
|
KMT_TESTFUNC Test_KeGuardedMutex;
|
|
KMT_TESTFUNC Test_KeIrql;
|
|
KMT_TESTFUNC Test_KeMutex;
|
|
KMT_TESTFUNC Test_KeProcessor;
|
|
KMT_TESTFUNC Test_KeSpinLock;
|
|
KMT_TESTFUNC Test_KeTimer;
|
|
KMT_TESTFUNC Test_KernelType;
|
|
KMT_TESTFUNC Test_MmMdl;
|
|
KMT_TESTFUNC Test_MmSection;
|
|
KMT_TESTFUNC Test_MmReservedMapping;
|
|
KMT_TESTFUNC Test_NpfsConnect;
|
|
KMT_TESTFUNC Test_NpfsCreate;
|
|
KMT_TESTFUNC Test_NpfsFileInfo;
|
|
KMT_TESTFUNC Test_NpfsReadWrite;
|
|
KMT_TESTFUNC Test_NpfsVolumeInfo;
|
|
KMT_TESTFUNC Test_ObHandle;
|
|
KMT_TESTFUNC Test_ObReference;
|
|
KMT_TESTFUNC Test_ObSecurity;
|
|
KMT_TESTFUNC Test_ObSymbolicLink;
|
|
KMT_TESTFUNC Test_ObType;
|
|
KMT_TESTFUNC Test_ObTypeClean;
|
|
KMT_TESTFUNC Test_ObTypeNoClean;
|
|
KMT_TESTFUNC Test_ObTypes;
|
|
KMT_TESTFUNC Test_PsNotify;
|
|
KMT_TESTFUNC Test_SeInheritance;
|
|
KMT_TESTFUNC Test_SeQueryInfoToken;
|
|
KMT_TESTFUNC Test_RtlAvlTree;
|
|
KMT_TESTFUNC Test_RtlException;
|
|
KMT_TESTFUNC Test_RtlIntSafe;
|
|
KMT_TESTFUNC Test_RtlIsValidOemCharacter;
|
|
KMT_TESTFUNC Test_RtlMemory;
|
|
KMT_TESTFUNC Test_RtlRegistry;
|
|
KMT_TESTFUNC Test_RtlSplayTree;
|
|
KMT_TESTFUNC Test_RtlUnicodeString;
|
|
KMT_TESTFUNC Test_ZwAllocateVirtualMemory;
|
|
KMT_TESTFUNC Test_ZwCreateSection;
|
|
KMT_TESTFUNC Test_ZwMapViewOfSection;
|
|
KMT_TESTFUNC Test_ZwWaitForMultipleObjects;
|
|
|
|
const KMT_TEST TestList[] =
|
|
{
|
|
{ "CmSecurity", Test_CmSecurity },
|
|
{ "ExCallback", Test_ExCallback },
|
|
{ "ExDoubleList", Test_ExDoubleList },
|
|
{ "ExFastMutex", Test_ExFastMutex },
|
|
{ "ExHardError", Test_ExHardError },
|
|
{ "-ExHardErrorInteractive", Test_ExHardErrorInteractive },
|
|
{ "ExInterlocked", Test_ExInterlocked },
|
|
{ "ExPools", Test_ExPools },
|
|
{ "ExResource", Test_ExResource },
|
|
{ "ExSequencedList", Test_ExSequencedList },
|
|
{ "ExSingleList", Test_ExSingleList },
|
|
{ "-ExTimer", Test_ExTimer },
|
|
{ "Example", Test_Example },
|
|
{ "FsRtlDissect", Test_FsRtlDissect },
|
|
{ "FsRtlExpression", Test_FsRtlExpression },
|
|
{ "FsRtlLegal", Test_FsRtlLegal },
|
|
{ "FsRtlMcb", Test_FsRtlMcb },
|
|
{ "FsRtlRemoveDotsFromPath", Test_FsRtlRemoveDotsFromPath },
|
|
{ "FsRtlTunnel", Test_FsRtlTunnel },
|
|
{ "IoCreateFile", Test_IoCreateFile },
|
|
{ "IoDeviceInterface", Test_IoDeviceInterface },
|
|
{ "IoEvent", Test_IoEvent },
|
|
{ "IoFilesystem", Test_IoFilesystem },
|
|
{ "IoInterrupt", Test_IoInterrupt },
|
|
{ "IoIrp", Test_IoIrp },
|
|
{ "IoMdl", Test_IoMdl },
|
|
{ "KeApc", Test_KeApc },
|
|
{ "KeDeviceQueue", Test_KeDeviceQueue },
|
|
{ "KeDpc", Test_KeDpc },
|
|
{ "KeEvent", Test_KeEvent },
|
|
{ "KeGuardedMutex", Test_KeGuardedMutex },
|
|
{ "KeIrql", Test_KeIrql },
|
|
{ "KeMutex", Test_KeMutex },
|
|
{ "-KeProcessor", Test_KeProcessor },
|
|
{ "KeSpinLock", Test_KeSpinLock },
|
|
{ "KeTimer", Test_KeTimer },
|
|
{ "-KernelType", Test_KernelType },
|
|
{ "MmMdl", Test_MmMdl },
|
|
{ "MmSection", Test_MmSection },
|
|
{ "MmReservedMapping", Test_MmReservedMapping },
|
|
{ "NpfsConnect", Test_NpfsConnect },
|
|
{ "NpfsCreate", Test_NpfsCreate },
|
|
{ "NpfsFileInfo", Test_NpfsFileInfo },
|
|
{ "NpfsReadWrite", Test_NpfsReadWrite },
|
|
{ "NpfsVolumeInfo", Test_NpfsVolumeInfo },
|
|
{ "ObHandle", Test_ObHandle },
|
|
{ "ObReference", Test_ObReference },
|
|
{ "ObSecurity", Test_ObSecurity },
|
|
{ "ObSymbolicLink", Test_ObSymbolicLink },
|
|
{ "ObType", Test_ObType },
|
|
{ "-ObTypeClean", Test_ObTypeClean },
|
|
{ "-ObTypeNoClean", Test_ObTypeNoClean },
|
|
{ "ObTypes", Test_ObTypes },
|
|
{ "PsNotify", Test_PsNotify },
|
|
{ "RtlAvlTreeKM", Test_RtlAvlTree },
|
|
{ "RtlExceptionKM", Test_RtlException },
|
|
{ "RtlIntSafeKM", Test_RtlIntSafe },
|
|
{ "RtlIsValidOemCharacter", Test_RtlIsValidOemCharacter },
|
|
{ "RtlMemoryKM", Test_RtlMemory },
|
|
{ "RtlRegistryKM", Test_RtlRegistry },
|
|
{ "RtlSplayTreeKM", Test_RtlSplayTree },
|
|
{ "RtlUnicodeStringKM", Test_RtlUnicodeString },
|
|
{ "SeInheritance", Test_SeInheritance },
|
|
{ "SeQueryInfoToken", Test_SeQueryInfoToken },
|
|
{ "ZwAllocateVirtualMemory", Test_ZwAllocateVirtualMemory },
|
|
{ "ZwCreateSection", Test_ZwCreateSection },
|
|
{ "ZwMapViewOfSection", Test_ZwMapViewOfSection },
|
|
{ "ZwWaitForMultipleObjects", Test_ZwWaitForMultipleObjects},
|
|
{ NULL, NULL }
|
|
};
|