ReactOS  0.4.15-dev-2087-g6bfb76b
ob.h
Go to the documentation of this file.
1 /*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: ntoskrnl/include/internal/ob.h
5 * PURPOSE: Internal header for the Object Manager
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8 
9 //
10 // Define this if you want debugging support
11 //
12 #define _OB_DEBUG_ 0x00
13 
14 //
15 // These define the Debug Masks Supported
16 //
17 #define OB_HANDLE_DEBUG 0x01
18 #define OB_NAMESPACE_DEBUG 0x02
19 #define OB_SECURITY_DEBUG 0x04
20 #define OB_REFERENCE_DEBUG 0x08
21 #define OB_CALLBACK_DEBUG 0x10
22 
23 //
24 // Debug/Tracing support
25 //
26 #if _OB_DEBUG_
27 #ifdef NEW_DEBUG_SYSTEM_IMPLEMENTED // enable when Debug Filters are implemented
28 #define OBTRACE DbgPrintEx
29 #else
30 #define OBTRACE(x, ...) \
31  if (x & ObpTraceLevel) DbgPrint(__VA_ARGS__)
32 #endif
33 #else
34 #define OBTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__)
35 #endif
36 
37 //
38 // Mask to detect GENERIC_XXX access masks being used
39 //
40 #define GENERIC_ACCESS \
41  (GENERIC_READ | \
42  GENERIC_WRITE | \
43  GENERIC_EXECUTE | \
44  GENERIC_ALL)
45 
46 //
47 // Handle Bit Flags
48 //
49 #define OBJ_PROTECT_CLOSE 0x01
50 //#define OBJ_INHERIT 0x02
51 #define OBJ_AUDIT_OBJECT_CLOSE 0x04
52 #define OBJ_HANDLE_ATTRIBUTES (OBJ_PROTECT_CLOSE |\
53  OBJ_INHERIT | \
54  OBJ_AUDIT_OBJECT_CLOSE)
55 
56 //
57 // Identifies a Kernel Handle
58 //
59 #ifdef _WIN64
60 #define KERNEL_HANDLE_FLAG 0xFFFFFFFF80000000ULL
61 #else
62 #define KERNEL_HANDLE_FLAG 0x80000000
63 #endif
64 #define ObpIsKernelHandle(Handle, ProcessorMode) \
65  ((((ULONG_PTR)(Handle) & KERNEL_HANDLE_FLAG) == KERNEL_HANDLE_FLAG) && \
66  ((ProcessorMode) == KernelMode) && \
67  ((Handle) != NtCurrentProcess()) && \
68  ((Handle) != NtCurrentThread()))
69 
70 //
71 // Converts to and from a Kernel Handle to a normal handle
72 //
73 #define ObKernelHandleToHandle(Handle) \
74  (HANDLE)((ULONG_PTR)(Handle) & ~KERNEL_HANDLE_FLAG)
75 #define ObMarkHandleAsKernelHandle(Handle) \
76  (HANDLE)((ULONG_PTR)(Handle) | KERNEL_HANDLE_FLAG)
77 
78 //
79 // Converts from an EXHANDLE object to a POBJECT_HEADER
80 //
81 #define ObpGetHandleObject(x) \
82  ((POBJECT_HEADER)((ULONG_PTR)x->Object & ~OBJ_HANDLE_ATTRIBUTES))
83 
84 //
85 // Recovers the security descriptor from a cached security descriptor header
86 //
87 #define ObpGetHeaderForSd(x) \
88  CONTAINING_RECORD((x), SECURITY_DESCRIPTOR_HEADER, SecurityDescriptor)
89 
90 //
91 // Recovers the security descriptor from a cached security descriptor list entry
92 //
93 #define ObpGetHeaderForEntry(x) \
94  CONTAINING_RECORD((x), SECURITY_DESCRIPTOR_HEADER, Link)
95 
96 //
97 // Context Structures for Ex*Handle Callbacks
98 //
100 {
104 
106 {
110 
111 typedef struct _OBP_FIND_HANDLE_DATA
112 {
117 
118 //
119 // Cached Security Descriptor Header
120 //
122 {
128 
129 //
130 // Cached Security Descriptor List
131 //
132 typedef struct _OB_SD_CACHE_LIST
133 {
137 
138 //
139 // Structure for quick-compare of a DOS Device path
140 //
141 typedef union
142 {
143  WCHAR Name[sizeof(ULARGE_INTEGER) / sizeof(WCHAR)];
145 } ALIGNEDNAME;
146 
147 //
148 // Private Temporary Buffer for Lookup Routines
149 //
150 #define TAG_OB_TEMP_STORAGE 'tSbO'
151 typedef struct _OB_TEMP_BUFFER
152 {
158 
159 //
160 // Startup and Shutdown Functions
161 //
162 BOOLEAN
163 NTAPI
165  VOID
166 );
167 
168 VOID
169 NTAPI
171  VOID
172 );
173 
174 //
175 // Directory Namespace Functions
176 //
177 BOOLEAN
178 NTAPI
181 );
182 
183 BOOLEAN
184 NTAPI
188  IN POBJECT_HEADER ObjectHeader
189 );
190 
191 PVOID
192 NTAPI
197  IN UCHAR SearchShadow,
199 );
200 
201 //
202 // Symbolic Link Functions
203 //
204 VOID
205 NTAPI
207  IN PVOID ObjectBody
208 );
209 
210 NTSTATUS
211 NTAPI
213  IN PVOID ParsedObject,
218  IN OUT PUNICODE_STRING FullPath,
222  OUT PVOID *NextObject
223 );
224 
225 VOID
226 NTAPI
229 );
230 
231 VOID
232 NTAPI
235 );
236 
237 //
238 // Process/Handle Table Init/Rundown
239 //
240 NTSTATUS
241 NTAPI
245 );
246 
248 NTAPI
251 );
252 
253 VOID
254 NTAPI
257 );
258 
259 VOID
260 NTAPI
263 );
264 
265 //
266 // Object Lookup Functions
267 //
268 NTSTATUS
269 NTAPI
271  IN HANDLE RootHandle OPTIONAL,
276  IN OUT PVOID ParseContext,
278  IN PVOID InsertObject OPTIONAL,
280  OUT POBP_LOOKUP_CONTEXT LookupContext,
281  OUT PVOID *FoundObject
282 );
283 
284 //
285 // Object Attribute Functions
286 //
287 BOOLEAN
288 NTAPI
290  IN OUT PHANDLE_TABLE_ENTRY HandleTableEntry,
292 );
293 
294 NTSTATUS
295 NTAPI
298  OUT PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo,
299  IN ULONG Flags
300 );
301 
302 //
303 // Object Lifetime Functions
304 //
305 VOID
306 NTAPI
308  IN PVOID Object,
309  IN BOOLEAN CalledFromWorkerThread
310 );
311 
312 LONG
313 FASTCALL
315  IN PVOID Object,
316  IN LONG Count
317 );
318 
319 LONG
320 FASTCALL
322  IN PVOID Object,
323  IN LONG Count
324 );
325 
326 BOOLEAN
327 FASTCALL
329  IN PVOID Object
330 );
331 
332 VOID
333 NTAPI
335  IN PVOID Unused
336 );
337 
338 VOID
339 FASTCALL
341  IN PVOID ObjectBody,
342  IN BOOLEAN Permanent
343 );
344 
345 VOID
346 NTAPI
348  IN PVOID Object
349 );
350 
351 VOID
352 NTAPI
355 );
356 
357 NTSTATUS
358 NTAPI
360  IN PEPROCESS SourceProcess,
362  IN PEPROCESS TargetProcess OPTIONAL,
366  IN ULONG Options,
368 );
369 
370 VOID
371 NTAPI
373  IN POBJECT_CREATE_INFORMATION ObjectCreateInfo
374 );
375 
376 VOID
377 NTAPI
380 );
381 
382 VOID
383 NTAPI
385  IN PVOID Object
386 );
387 
388 NTSTATUS
389 NTAPI
391  IN HANDLE Handle,
395 );
396 
397 //
398 // DOS Devices Functions
399 //
400 NTSTATUS
401 NTAPI
405 );
406 
407 NTSTATUS
408 NTAPI
411 );
412 
413 VOID
414 NTAPI
417 );
418 
419 VOID
420 FASTCALL
422  IN PDEVICE_MAP DeviceMap
423 );
424 
425 VOID
426 NTAPI
430 );
431 
432 NTSTATUS
433 NTAPI
435  VOID
436 );
437 
438 ULONG
439 NTAPI
441  VOID
442 );
443 
445 NTAPI
447  VOID
448 );
449 
450 //
451 // Security descriptor cache functions
452 //
453 NTSTATUS
454 NTAPI
456  VOID
457 );
458 
460 NTAPI
462  IN POBJECT_HEADER ObjectHeader
463 );
464 
465 //
466 // Object Security Routines
467 //
468 BOOLEAN
469 NTAPI
471  IN PVOID Object,
473  IN BOOLEAN LockHeld,
475  OUT PNTSTATUS ReturnedStatus
476 );
477 
478 BOOLEAN
479 NTAPI
481  IN PVOID Object,
482  IN ACCESS_MASK CreateAccess,
484  IN PUNICODE_STRING ComponentName,
485  IN BOOLEAN LockHeld,
488 );
489 
490 BOOLEAN
491 NTAPI
493  IN PVOID Object,
494  IN ACCESS_MASK TraverseAccess,
496  IN BOOLEAN LockHeld,
499 );
500 
501 BOOLEAN
502 NTAPI
504  IN PVOID Object,
506  IN BOOLEAN LockHeld,
509 );
510 
511 //
512 // Default Object Security Callback Routines
513 //
514 NTSTATUS
515 NTAPI
517  IN PVOID Object,
520 );
521 
522 NTSTATUS
523 NTAPI
526 );
527 
528 NTSTATUS
529 NTAPI
531  IN PVOID Object,
535  IN PSECURITY_DESCRIPTOR *OutputSecurityDescriptor
536 );
537 
538 NTSTATUS
539 NTAPI
541  IN PVOID Object,
544  IN OUT PSECURITY_DESCRIPTOR *OutputSecurityDescriptor,
547 );
548 
549 //
550 // Executive Fast Referencing Functions
551 //
552 VOID
553 FASTCALL
555  IN PEX_FAST_REF FastRef,
556  IN PVOID Object
557 );
558 
559 PVOID
560 FASTCALL
562  IN PEX_FAST_REF FastRef,
563  IN PVOID Object
564 );
565 
566 PVOID
567 FASTCALL
569  IN PEX_FAST_REF FastRef
570 );
571 
572 PVOID
573 FASTCALL
575  IN PEX_FAST_REF FastRef
576 );
577 
578 VOID
579 FASTCALL
581  IN PEX_FAST_REF FastRef,
582  IN PVOID Object
583 );
584 
585 //
586 // Object Create and Object Name Capture Functions
587 //
588 NTSTATUS
589 NTAPI
591  IN PUNICODE_STRING CapturedName,
594  IN BOOLEAN AllocateFromLookaside
595 );
596 
597 NTSTATUS
598 NTAPI
602  IN KPROCESSOR_MODE CreatorMode,
603  IN BOOLEAN AllocateFromLookaside,
604  IN POBJECT_CREATE_INFORMATION ObjectCreateInfo,
606 );
607 
608 //
609 // Miscellanea
610 //
611 ULONG
612 NTAPI
615 );
616 
617 //
618 // Global data inside the Object Manager
619 //
620 extern ULONG ObpTraceLevel;
621 extern KEVENT ObpDefaultObject;
630 extern volatile PVOID ObpReaperList;
639 extern ULONG ObpProtectionMode;
642 
643 //
644 // Inlined Functions
645 //
646 #include "ob_x.h"
VOID NTAPI ObpDeleteSymbolicLink(IN PVOID ObjectBody)
VOID NTAPI ObKillProcess(IN PEPROCESS Process)
Definition: obhandle.c:2157
POBJECT_HEADER ObjectHeader
Definition: ob.h:113
* PNTSTATUS
Definition: strlen.c:14
PHANDLE_TABLE NTAPI ObReferenceProcessHandleTable(IN PEPROCESS Process)
Definition: obhandle.c:29
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
ObjectType
Definition: metafile.c:80
BOOLEAN NTAPI ObpCheckObjectReference(IN PVOID Object, IN OUT PACCESS_STATE AccessState, IN BOOLEAN LockHeld, IN KPROCESSOR_MODE AccessMode, OUT PNTSTATUS AccessStatus)
Definition: obsecure.c:340
_In_ HANDLE _In_opt_ HANDLE _Out_opt_ PHANDLE _In_ ACCESS_MASK _In_ ULONG HandleAttributes
Definition: obfuncs.h:429
_Must_inspect_result_ typedef _In_ PVOID Unused
Definition: iotypes.h:1166
#define IN
Definition: typedefs.h:39
struct _OB_TEMP_BUFFER * POB_TEMP_BUFFER
struct _OB_SD_CACHE_LIST * POB_SD_CACHE_LIST
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2654
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
OBJECT_HANDLE_ATTRIBUTE_INFORMATION Information
Definition: ob.h:102
BOOLEAN NTAPI ObpSetHandleAttributes(IN OUT PHANDLE_TABLE_ENTRY HandleTableEntry, IN ULONG_PTR Context)
Definition: obhandle.c:1856
POBJECT_TYPE ObjectType
Definition: ob.h:114
KPROCESSOR_MODE PreviousMode
Definition: ob.h:101
WORK_QUEUE_ITEM ObpReaperWorkItem
Definition: oblife.c:28
ULONG ObpLUIDDeviceMapsEnabled
Definition: devicemap.c:18
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET _In_ PGENERIC_MAPPING _In_ KPROCESSOR_MODE _Out_ PACCESS_MASK _Out_ PNTSTATUS AccessStatus
Definition: sefuncs.h:13
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:182
OBJECT_CREATE_INFORMATION ObjectCreateInfo
Definition: ob.h:154
struct _ULARGE_INTEGER ULARGE_INTEGER
WCHAR ObpUnsecureGlobalNamesBuffer[128]
Definition: obname.c:32
NTSTATUS NTAPI ObReferenceFileObjectForWrite(IN HANDLE Handle, IN KPROCESSOR_MODE AccessMode, OUT PFILE_OBJECT *FileObject, OUT POBJECT_HANDLE_INFORMATION HandleInformation)
Definition: obref.c:202
VOID FASTCALL ObfDereferenceDeviceMap(IN PDEVICE_MAP DeviceMap)
Definition: devicemap.c:477
VOID NTAPI ObpFreeObjectNameBuffer(IN PUNICODE_STRING Name)
Definition: oblife.c:347
LONG FASTCALL ObReferenceObjectEx(IN PVOID Object, IN LONG Count)
Definition: obref.c:79
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI ObSetDeviceMap(IN PEPROCESS Process, IN HANDLE DirectoryHandle)
Definition: devicemap.c:24
PVOID FASTCALL ObFastReferenceObject(IN PEX_FAST_REF FastRef)
Definition: obref.c:134
static HANDLE DirectoryHandle
Definition: ObType.c:48
NTSTATUS NTAPI ObQueryDeviceMapInformation(IN PEPROCESS Process, OUT PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo, IN ULONG Flags)
BOOLEAN NTAPI ObpCheckTraverseAccess(IN PVOID Object, IN ACCESS_MASK TraverseAccess, IN PACCESS_STATE AccessState OPTIONAL, IN BOOLEAN LockHeld, IN KPROCESSOR_MODE AccessMode, OUT PNTSTATUS AccessStatus)
Definition: obsecure.c:267
struct _OBP_FIND_HANDLE_DATA * POBP_FIND_HANDLE_DATA
GENERAL_LOOKASIDE ObpCreateInfoLookasideList
Definition: oblife.c:26
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
Definition: acpixf.h:728
ALIGNEDNAME ObpDosDevicesShortNameRoot
Definition: obname.c:24
_In_ HANDLE SourceHandle
Definition: obfuncs.h:429
_In_ PVOID _Out_opt_ PULONG_PTR _Outptr_opt_ PCUNICODE_STRING * ObjectName
Definition: cmfuncs.h:62
VOID NTAPI ObpDeleteObjectType(IN PVOID Object)
Definition: oblife.c:1329
#define FASTCALL
Definition: nt_native.h:50
POBJECT_DIRECTORY ObpRootDirectoryObject
Definition: obname.c:19
VOID FASTCALL ObpSetPermanentObject(IN PVOID ObjectBody, IN BOOLEAN Permanent)
Definition: oblife.c:267
PHANDLE_TABLE HandleTable
Definition: ob.h:107
BOOLEAN FASTCALL ObReferenceObjectSafe(IN PVOID Object)
Definition: obref.c:24
uint32_t ULONG_PTR
Definition: typedefs.h:65
struct LOOKASIDE_ALIGN _GENERAL_LOOKASIDE GENERAL_LOOKASIDE
ALIGNEDNAME ObpDosDevicesShortNamePrefix
Definition: obname.c:23
ULARGE_INTEGER Alignment
Definition: ob.h:144
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
struct _SECURITY_DESCRIPTOR_HEADER SECURITY_DESCRIPTOR_HEADER
VOID NTAPI ObDereferenceProcessHandleTable(IN PEPROCESS Process)
Definition: obhandle.c:51
struct _OBP_CLOSE_HANDLE_CONTEXT * POBP_CLOSE_HANDLE_CONTEXT
long LONG
Definition: pedump.c:60
NTSTATUS NTAPI ObSetDirectoryDeviceMap(OUT PDEVICE_MAP *DeviceMap, IN HANDLE DirectoryHandle)
Definition: devicemap.c:149
VOID NTAPI ObpDeleteObject(IN PVOID Object, IN BOOLEAN CalledFromWorkerThread)
Definition: oblife.c:148
POBJECT_TYPE ObpDirectoryObjectType
Definition: obdir.c:20
ULONG NTAPI ObGetProcessHandleCount(IN PEPROCESS Process)
Definition: obhandle.c:59
GENERAL_LOOKASIDE ObpNameBufferLookasideList
Definition: oblife.c:26
_In_ PEPROCESS _In_ KPROCESSOR_MODE AccessMode
Definition: mmfuncs.h:395
Definition: extypes.h:595
NTSTATUS NTAPI ObSetSecurityDescriptorInfo(IN PVOID Object, IN PSECURITY_INFORMATION SecurityInformation, IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PSECURITY_DESCRIPTOR *OutputSecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping)
Definition: obsecure.c:117
unsigned char BOOLEAN
VOID NTAPI ObpReapObject(IN PVOID Unused)
Definition: oblife.c:221
POBJECT_HANDLE_INFORMATION HandleInformation
Definition: ob.h:115
NTSTATUS NTAPI ObpCreateDosDevicesDirectory(VOID)
Definition: obname.c:177
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1339
PHANDLE_TABLE ObpKernelHandleTable
Definition: obhandle.c:20
struct _SECURITY_DESCRIPTOR_HEADER * PSECURITY_DESCRIPTOR_HEADER
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:547
BOOLEAN NTAPI ObpInsertEntryDirectory(IN POBJECT_DIRECTORY Parent, IN POBP_LOOKUP_CONTEXT Context, IN POBJECT_HEADER ObjectHeader)
Definition: obdir.c:45
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103
int Count
Definition: noreturn.cpp:7
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3531
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
ACCESS_STATE LocalAccessState
Definition: ob.h:153
struct _OB_TEMP_BUFFER OB_TEMP_BUFFER
volatile PVOID ObpReaperList
Definition: oblife.c:29
VOID NTAPI ObFreeObjectCreateInfoBuffer(IN POBJECT_CREATE_INFORMATION ObjectCreateInfo)
Definition: oblife.c:604
ULONG ObpObjectSecurityMode
Definition: obinit.c:56
__wchar_t WCHAR
Definition: xmlstorage.h:180
PVOID FASTCALL ObFastReplaceObject(IN PEX_FAST_REF FastRef, IN PVOID Object)
DWORD * PSECURITY_INFORMATION
Definition: ms-dtyp.idl:311
INT POOL_TYPE
Definition: typedefs.h:78
ULONG ObpTraceLevel
Definition: obinit.c:47
_In_ ACCESS_MASK _In_opt_ POBJECT_TYPE _In_ KPROCESSOR_MODE _Out_ PVOID _Out_opt_ POBJECT_HANDLE_INFORMATION HandleInformation
Definition: obfuncs.h:40
VOID FASTCALL ObInitializeFastReference(IN PEX_FAST_REF FastRef, IN PVOID Object)
Definition: obref.c:109
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
* PFILE_OBJECT
Definition: iotypes.h:1995
VOID NTAPI ObpCreateSymbolicLinkName(IN POBJECT_SYMBOLIC_LINK SymbolicLink)
Definition: oblink.c:334
BOOLEAN NTAPI ObInitSystem(VOID)
Definition: obinit.c:203
_In_opt_ PVOID _In_opt_ PUNICODE_STRING _In_ PSECURITY_DESCRIPTOR _In_ PACCESS_STATE AccessState
Definition: sefuncs.h:414
UNICODE_STRING ObpDosDevicesShortName
Definition: obname.c:25
BOOLEAN NTAPI ObCheckCreateObjectAccess(IN PVOID Object, IN ACCESS_MASK CreateAccess, IN PACCESS_STATE AccessState, IN PUNICODE_STRING ComponentName, IN BOOLEAN LockHeld, IN KPROCESSOR_MODE AccessMode, OUT PNTSTATUS AccessStatus)
Definition: obsecure.c:203
PSECURITY_DESCRIPTOR NTAPI ObpReferenceSecurityDescriptor(IN POBJECT_HEADER ObjectHeader)
Definition: obsdcach.c:181
unsigned char UCHAR
Definition: xmlstorage.h:181
PVOID NTAPI ObpLookupEntryDirectory(IN POBJECT_DIRECTORY Directory, IN PUNICODE_STRING Name, IN ULONG Attributes, IN UCHAR SearchShadow, IN POBP_LOOKUP_CONTEXT Context)
Definition: obdir.c:158
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
EX_PUSH_LOCK PushLock
Definition: ob.h:134
POBJECT_TYPE ObpTypeObjectType
Definition: oblife.c:22
NTSTATUS NTAPI ObQuerySecurityDescriptorInfo(IN PVOID Object, IN PSECURITY_INFORMATION SecurityInformation, OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG Length, IN PSECURITY_DESCRIPTOR *OutputSecurityDescriptor)
Definition: obsecure.c:85
BOOLEAN IoCountOperations
Definition: iomgr.c:38
VOID NTAPI ObShutdownSystem(VOID)
struct _OB_SD_CACHE_LIST OB_SD_CACHE_LIST
Definition: typedefs.h:119
AUX_ACCESS_DATA AuxData
Definition: ob.h:156
NTSTATUS NTAPI ObpInitSdCache(VOID)
Definition: obsdcach.c:61
VOID NTAPI ObDereferenceDeviceMap(IN PEPROCESS Process)
Definition: devicemap.c:456
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
NTSTATUS NTAPI ObDeassignSecurity(IN OUT PSECURITY_DESCRIPTOR *SecurityDescriptor)
Definition: obsecure.c:60
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
BOOLEAN NTAPI ObCheckObjectAccess(IN PVOID Object, IN OUT PACCESS_STATE AccessState, IN BOOLEAN LockHeld, IN KPROCESSOR_MODE AccessMode, OUT PNTSTATUS ReturnedStatus)
Definition: obsecure.c:441
VOID NTAPI ObClearProcessHandleTable(IN PEPROCESS Process)
Definition: obhandle.c:2024
VOID NTAPI ObpDeleteSymbolicLinkName(IN POBJECT_SYMBOLIC_LINK SymbolicLink)
Definition: oblink.c:326
ULONG ObpProtectionMode
Definition: obinit.c:57
NTSTATUS NTAPI ObpCaptureObjectCreateInformation(IN POBJECT_ATTRIBUTES ObjectAttributes, IN KPROCESSOR_MODE AccessMode, IN KPROCESSOR_MODE CreatorMode, IN BOOLEAN AllocateFromLookaside, IN POBJECT_CREATE_INFORMATION ObjectCreateInfo, OUT PUNICODE_STRING ObjectName)
Definition: oblife.c:456
OBP_LOOKUP_CONTEXT LookupContext
Definition: ob.h:155
struct _OBP_SET_HANDLE_ATTRIBUTES_CONTEXT OBP_SET_HANDLE_ATTRIBUTES_CONTEXT
struct _OBP_SET_HANDLE_ATTRIBUTES_CONTEXT * POBP_SET_HANDLE_ATTRIBUTES_CONTEXT
NTSTATUS NTAPI ObpParseSymbolicLink(IN PVOID ParsedObject, IN PVOID ObjectType, IN OUT PACCESS_STATE AccessState, IN KPROCESSOR_MODE AccessMode, IN ULONG Attributes, IN OUT PUNICODE_STRING FullPath, IN OUT PUNICODE_STRING RemainingName, IN OUT PVOID Context OPTIONAL, IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, OUT PVOID *NextObject)
Definition: oblink.c:431
LONG FASTCALL ObDereferenceObjectEx(IN PVOID Object, IN LONG Count)
Definition: obref.c:90
unsigned int * PULONG
Definition: retypes.h:1
KEVENT ObpDefaultObject
Definition: oblife.c:23
NTSTATUS NTAPI ObAssignObjectSecurityDescriptor(IN PVOID Object, IN PSECURITY_DESCRIPTOR SecurityDescriptor OPTIONAL, IN POOL_TYPE PoolType)
Definition: obsecure.c:20
POBJECT_TYPE ObpSymbolicLinkObjectType
Definition: oblink.c:19
LIST_ENTRY Head
Definition: ob.h:135
VOID FASTCALL ObFastDereferenceObject(IN PEX_FAST_REF FastRef, IN PVOID Object)
Definition: obref.c:169
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
_In_ HANDLE Handle
Definition: extypes.h:390
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3810
unsigned int ULONG
Definition: retypes.h:1
base for all directory entries
Definition: entries.h:138
PVOID FASTCALL ObFastReferenceObjectLocked(IN PEX_FAST_REF FastRef)
Definition: obref.c:121
NTSTATUS NTAPI ObInitProcess(IN PEPROCESS Parent OPTIONAL, IN PEPROCESS Process)
Definition: obhandle.c:2087
struct _OBP_CLOSE_HANDLE_CONTEXT OBP_CLOSE_HANDLE_CONTEXT
ULONG ObpLUIDDeviceMapsDisabled
Definition: devicemap.c:17
NTSTATUS NTAPI ObDuplicateObject(IN PEPROCESS SourceProcess, IN HANDLE SourceHandle, IN PEPROCESS TargetProcess OPTIONAL, IN PHANDLE TargetHandle OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG HandleAttributes, IN ULONG Options, IN KPROCESSOR_MODE PreviousMode)
Definition: obhandle.c:2201
NTSTATUS NTAPI ObpCaptureObjectName(IN PUNICODE_STRING CapturedName, IN PUNICODE_STRING ObjectName, IN KPROCESSOR_MODE AccessMode, IN BOOLEAN AllocateFromLookaside)
ULONG ObpUnsecureGlobalNamesLength
Definition: obname.c:33
PDEVICE_MAP NTAPI ObpReferenceDeviceMap(VOID)
Definition: devicemap.c:325
KGUARDED_MUTEX ObpDeviceMapLock
Definition: oblife.c:24
struct _OBP_FIND_HANDLE_DATA OBP_FIND_HANDLE_DATA
VOID NTAPI ObpDeleteNameCheck(IN PVOID Object)
Definition: obname.c:301
ULONG NTAPI ObIsLUIDDeviceMapsEnabled(VOID)
Definition: devicemap.c:661
_In_ HANDLE _In_opt_ HANDLE _Out_opt_ PHANDLE TargetHandle
Definition: obfuncs.h:429
ULONG ACCESS_MASK
Definition: nt_native.h:40
VOID NTAPI ObInheritDeviceMap(IN PEPROCESS Parent, IN PEPROCESS Process)
Definition: devicemap.c:511
KPROCESSOR_MODE AccessMode
Definition: ob.h:108
BOOLEAN NTAPI ObpDeleteEntryDirectory(IN POBP_LOOKUP_CONTEXT Context)
static const WCHAR SymbolicLink[]
Definition: interface.c:31
POBJECT_DIRECTORY ObpTypeDirectoryObject
Definition: obname.c:20
NTSTATUS NTAPI ObpLookupObjectName(IN HANDLE RootHandle OPTIONAL, IN OUT PUNICODE_STRING ObjectName, IN ULONG Attributes, IN POBJECT_TYPE ObjectType, IN KPROCESSOR_MODE AccessMode, IN OUT PVOID ParseContext, IN PSECURITY_QUALITY_OF_SERVICE SecurityQos OPTIONAL, IN PVOID InsertObject OPTIONAL, IN OUT PACCESS_STATE AccessState, OUT POBP_LOOKUP_CONTEXT LookupContext, OUT PVOID *FoundObject)
Definition: obname.c:448
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Inout_ PFCB _Inout_ PUNICODE_STRING RemainingName
Definition: cdprocs.h:801
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68