ReactOS  0.4.15-dev-3733-g974a0f0
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 // Handle Access Protection Close Flag
58 //
59 #define ObpAccessProtectCloseBit 0x02000000L
60 
61 //
62 // System Process Quota Block
63 //
64 #define OBP_SYSTEM_PROCESS_QUOTA ((PEPROCESS_QUOTA_BLOCK)(ULONG_PTR)1)
65 
66 //
67 // Identifies a Kernel Handle
68 //
69 #ifdef _WIN64
70 #define KERNEL_HANDLE_FLAG 0xFFFFFFFF80000000ULL
71 #else
72 #define KERNEL_HANDLE_FLAG 0x80000000
73 #endif
74 #define ObpIsKernelHandle(Handle, ProcessorMode) \
75  ((((ULONG_PTR)(Handle) & KERNEL_HANDLE_FLAG) == KERNEL_HANDLE_FLAG) && \
76  ((ProcessorMode) == KernelMode) && \
77  ((Handle) != NtCurrentProcess()) && \
78  ((Handle) != NtCurrentThread()))
79 
80 //
81 // Converts to and from a Kernel Handle to a normal handle
82 //
83 #define ObKernelHandleToHandle(Handle) \
84  (HANDLE)((ULONG_PTR)(Handle) & ~KERNEL_HANDLE_FLAG)
85 #define ObMarkHandleAsKernelHandle(Handle) \
86  (HANDLE)((ULONG_PTR)(Handle) | KERNEL_HANDLE_FLAG)
87 
88 //
89 // Converts from an EXHANDLE object to a POBJECT_HEADER
90 //
91 #define ObpGetHandleObject(x) \
92  ((POBJECT_HEADER)((ULONG_PTR)x->Object & ~OBJ_HANDLE_ATTRIBUTES))
93 
94 //
95 // Recovers the security descriptor from a cached security descriptor header
96 //
97 #define ObpGetHeaderForSd(x) \
98  CONTAINING_RECORD((x), SECURITY_DESCRIPTOR_HEADER, SecurityDescriptor)
99 
100 //
101 // Recovers the security descriptor from a cached security descriptor list entry
102 //
103 #define ObpGetHeaderForEntry(x) \
104  CONTAINING_RECORD((x), SECURITY_DESCRIPTOR_HEADER, Link)
105 
106 //
107 // Context Structures for Ex*Handle Callbacks
108 //
110 {
114 
116 {
120 
121 typedef struct _OBP_FIND_HANDLE_DATA
122 {
127 
128 //
129 // Cached Security Descriptor Header
130 //
132 {
138 
139 //
140 // Cached Security Descriptor List
141 //
142 typedef struct _OB_SD_CACHE_LIST
143 {
147 
148 //
149 // Structure for quick-compare of a DOS Device path
150 //
151 typedef union
152 {
153  WCHAR Name[sizeof(ULARGE_INTEGER) / sizeof(WCHAR)];
155 } ALIGNEDNAME;
156 
157 //
158 // Private Temporary Buffer for Lookup Routines
159 //
160 #define TAG_OB_TEMP_STORAGE 'tSbO'
161 typedef struct _OB_TEMP_BUFFER
162 {
168 
169 //
170 // Startup and Shutdown Functions
171 //
172 CODE_SEG("INIT")
173 BOOLEAN
174 NTAPI
176  VOID
177 );
178 
179 VOID
180 NTAPI
182  VOID
183 );
184 
185 //
186 // Directory Namespace Functions
187 //
188 BOOLEAN
189 NTAPI
192 );
193 
194 BOOLEAN
195 NTAPI
199  IN POBJECT_HEADER ObjectHeader
200 );
201 
202 PVOID
203 NTAPI
208  IN UCHAR SearchShadow,
210 );
211 
212 //
213 // Symbolic Link Functions
214 //
215 VOID
216 NTAPI
218  IN PVOID ObjectBody
219 );
220 
221 NTSTATUS
222 NTAPI
224  IN PVOID ParsedObject,
229  IN OUT PUNICODE_STRING FullPath,
233  OUT PVOID *NextObject
234 );
235 
236 VOID
237 NTAPI
240 );
241 
242 VOID
243 NTAPI
246 );
247 
248 //
249 // Process/Handle Table Init/Rundown
250 //
251 NTSTATUS
252 NTAPI
256 );
257 
259 NTAPI
262 );
263 
264 VOID
265 NTAPI
268 );
269 
270 VOID
271 NTAPI
274 );
275 
276 //
277 // Object Lookup Functions
278 //
279 NTSTATUS
280 NTAPI
282  IN HANDLE RootHandle OPTIONAL,
287  IN OUT PVOID ParseContext,
289  IN PVOID InsertObject OPTIONAL,
291  OUT POBP_LOOKUP_CONTEXT LookupContext,
292  OUT PVOID *FoundObject
293 );
294 
295 //
296 // Object Attribute Functions
297 //
298 BOOLEAN
299 NTAPI
301  IN OUT PHANDLE_TABLE_ENTRY HandleTableEntry,
303 );
304 
305 NTSTATUS
306 NTAPI
311 );
312 
313 //
314 // Object Lifetime Functions
315 //
316 VOID
317 NTAPI
319  IN PVOID Object,
320  IN BOOLEAN CalledFromWorkerThread
321 );
322 
323 LONG
324 FASTCALL
326  IN PVOID Object,
327  IN LONG Count
328 );
329 
330 LONG
331 FASTCALL
333  IN PVOID Object,
334  IN LONG Count
335 );
336 
337 BOOLEAN
338 FASTCALL
340  IN PVOID Object
341 );
342 
343 VOID
344 NTAPI
346  IN PVOID Unused
347 );
348 
349 VOID
350 FASTCALL
352  IN PVOID ObjectBody,
353  IN BOOLEAN Permanent
354 );
355 
356 VOID
357 NTAPI
359  IN PVOID Object
360 );
361 
362 VOID
363 NTAPI
366 );
367 
368 NTSTATUS
369 NTAPI
371  IN PEPROCESS SourceProcess,
373  IN PEPROCESS TargetProcess OPTIONAL,
377  IN ULONG Options,
379 );
380 
381 VOID
382 NTAPI
384  IN POBJECT_CREATE_INFORMATION ObjectCreateInfo
385 );
386 
387 VOID
388 NTAPI
391 );
392 
393 VOID
394 NTAPI
396  IN PVOID Object
397 );
398 
399 NTSTATUS
400 NTAPI
402  IN HANDLE Handle,
406 );
407 
408 //
409 // DOS Devices Functions
410 //
411 NTSTATUS
412 NTAPI
416 );
417 
418 NTSTATUS
419 NTAPI
422 );
423 
424 VOID
425 NTAPI
428 );
429 
430 VOID
431 FASTCALL
433  IN PDEVICE_MAP DeviceMap
434 );
435 
436 VOID
437 NTAPI
441 );
442 
443 CODE_SEG("INIT")
444 NTSTATUS
445 NTAPI
447  VOID
448 );
449 
450 ULONG
451 NTAPI
453  VOID
454 );
455 
457 NTAPI
459  VOID
460 );
461 
462 //
463 // Security descriptor cache functions
464 //
465 CODE_SEG("INIT")
466 NTSTATUS
467 NTAPI
469  VOID
470 );
471 
473 NTAPI
475  IN POBJECT_HEADER ObjectHeader
476 );
477 
478 //
479 // Object Security Routines
480 //
481 BOOLEAN
482 NTAPI
484  IN PVOID Object,
486  IN BOOLEAN LockHeld,
488  OUT PNTSTATUS ReturnedStatus
489 );
490 
491 BOOLEAN
492 NTAPI
494  IN PVOID Object,
495  IN ACCESS_MASK CreateAccess,
497  IN PUNICODE_STRING ComponentName,
498  IN BOOLEAN LockHeld,
501 );
502 
503 BOOLEAN
504 NTAPI
506  IN PVOID Object,
507  IN ACCESS_MASK TraverseAccess,
509  IN BOOLEAN LockHeld,
512 );
513 
514 BOOLEAN
515 NTAPI
517  IN PVOID Object,
519  IN BOOLEAN LockHeld,
522 );
523 
524 //
525 // Default Object Security Callback Routines
526 //
527 NTSTATUS
528 NTAPI
530  IN PVOID Object,
533 );
534 
535 NTSTATUS
536 NTAPI
539 );
540 
541 NTSTATUS
542 NTAPI
544  IN PVOID Object,
548  IN PSECURITY_DESCRIPTOR *OutputSecurityDescriptor
549 );
550 
551 NTSTATUS
552 NTAPI
554  IN PVOID Object,
557  IN OUT PSECURITY_DESCRIPTOR *OutputSecurityDescriptor,
560 );
561 
562 //
563 // Executive Fast Referencing Functions
564 //
565 VOID
566 FASTCALL
568  IN PEX_FAST_REF FastRef,
569  IN PVOID Object
570 );
571 
572 PVOID
573 FASTCALL
575  IN PEX_FAST_REF FastRef,
576  IN PVOID Object
577 );
578 
579 PVOID
580 FASTCALL
582  IN PEX_FAST_REF FastRef
583 );
584 
585 PVOID
586 FASTCALL
588  IN PEX_FAST_REF FastRef
589 );
590 
591 VOID
592 FASTCALL
594  IN PEX_FAST_REF FastRef,
595  IN PVOID Object
596 );
597 
598 //
599 // Object Create and Object Name Capture Functions
600 //
601 NTSTATUS
602 NTAPI
604  IN PUNICODE_STRING CapturedName,
607  IN BOOLEAN AllocateFromLookaside
608 );
609 
610 NTSTATUS
611 NTAPI
615  IN KPROCESSOR_MODE CreatorMode,
616  IN BOOLEAN AllocateFromLookaside,
617  IN POBJECT_CREATE_INFORMATION ObjectCreateInfo,
619 );
620 
621 //
622 // Miscellanea
623 //
624 ULONG
625 NTAPI
628 );
629 
630 //
631 // Global data inside the Object Manager
632 //
633 extern ULONG ObpTraceLevel;
634 extern KEVENT ObpDefaultObject;
652 extern ULONG ObpProtectionMode;
655 
656 //
657 // Inlined Functions
658 //
659 #include "ob_x.h"
VOID NTAPI ObpDeleteSymbolicLink(IN PVOID ObjectBody)
VOID NTAPI ObKillProcess(IN PEPROCESS Process)
Definition: obhandle.c:2159
POBJECT_HEADER ObjectHeader
Definition: ob.h:123
* PNTSTATUS
Definition: strlen.c:14
PHANDLE_TABLE NTAPI ObReferenceProcessHandleTable(IN PEPROCESS Process)
Definition: obhandle.c:26
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:112
#define _In_opt_
Definition: ms_sal.h:309
BOOLEAN NTAPI ObpSetHandleAttributes(IN OUT PHANDLE_TABLE_ENTRY HandleTableEntry, IN ULONG_PTR Context)
Definition: obhandle.c:1858
POBJECT_TYPE ObjectType
Definition: ob.h:124
KPROCESSOR_MODE PreviousMode
Definition: ob.h:111
WORK_QUEUE_ITEM ObpReaperWorkItem
Definition: oblife.c:28
NTSTATUS NTAPI ObQueryDeviceMapInformation(_In_opt_ PEPROCESS Process, _Out_ PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo, _In_ ULONG Flags)
Definition: devicemap.c:539
#define _Out_
Definition: ms_sal.h:345
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:164
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:200
VOID FASTCALL ObfDereferenceDeviceMap(IN PDEVICE_MAP DeviceMap)
Definition: devicemap.c:477
VOID NTAPI ObpFreeObjectNameBuffer(IN PUNICODE_STRING Name)
Definition: oblife.c:346
LONG FASTCALL ObReferenceObjectEx(IN PVOID Object, IN LONG Count)
Definition: obref.c:77
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:132
static HANDLE DirectoryHandle
Definition: ObType.c:48
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:1328
#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:266
PHANDLE_TABLE HandleTable
Definition: ob.h:117
BOOLEAN FASTCALL ObReferenceObjectSafe(IN PVOID Object)
Definition: obref.c:22
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:154
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:48
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:147
POBJECT_TYPE ObpDirectoryObjectType
Definition: obdir.c:20
ULONG NTAPI ObGetProcessHandleCount(IN PEPROCESS Process)
Definition: obhandle.c:56
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:220
POBJECT_HANDLE_INFORMATION HandleInformation
Definition: ob.h:125
NTSTATUS NTAPI ObpCreateDosDevicesDirectory(VOID)
Definition: obname.c:177
#define _In_
Definition: ms_sal.h:308
_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
#define volatile
Definition: prototyp.h:117
_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:163
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:603
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:107
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
* PFILE_OBJECT
Definition: iotypes.h:1998
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:144
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:166
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:2026
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:455
OBP_LOOKUP_CONTEXT LookupContext
Definition: ob.h:165
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:88
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:145
VOID FASTCALL ObFastDereferenceObject(IN PEX_FAST_REF FastRef, IN PVOID Object)
Definition: obref.c:167
_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:119
NTSTATUS NTAPI ObInitProcess(IN PEPROCESS Parent OPTIONAL, IN PEPROCESS Process)
Definition: obhandle.c:2089
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:2203
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:662
static CODE_SEG("PAGE")
Definition: isapnp.c:1482
_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:118
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:446
_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