- Remove unimplemented macro in SeOpenObjectAuditAlarm and replace it
with a DPRINT1; that way callers won't freeze while calling it.
Modified: trunk/reactos/ntoskrnl/ob/security.c
Modified: trunk/reactos/ntoskrnl/se/audit.c
_____
Modified: trunk/reactos/ntoskrnl/ob/security.c
--- trunk/reactos/ntoskrnl/ob/security.c 2005-11-08 17:20:58 UTC
(rev 19059)
+++ trunk/reactos/ntoskrnl/ob/security.c 2005-11-08 17:22:26 UTC
(rev 19060)
@@ -262,9 +262,8 @@
OUT PSECURITY_DESCRIPTOR
*OutputSecurityDescriptor,
IN ULONG RefBias)
{
- DPRINT1("ObLogSecurityDescriptor is not implemented!\n");
-
/* HACK: Return the same descriptor back */
+ DPRINT1("ObLogSecurityDescriptor is not implemented!\n");
*OutputSecurityDescriptor = InputSecurityDescriptor;
return STATUS_SUCCESS;
}
_____
Modified: trunk/reactos/ntoskrnl/se/audit.c
--- trunk/reactos/ntoskrnl/se/audit.c 2005-11-08 17:20:58 UTC (rev
19059)
+++ trunk/reactos/ntoskrnl/se/audit.c 2005-11-08 17:22:26 UTC (rev
19060)
@@ -225,7 +225,7 @@
IN KPROCESSOR_MODE AccessMode,
OUT PBOOLEAN GenerateOnClose)
{
- UNIMPLEMENTED;
+ DPRINT1("SeOpenObjectAuditAlarm is UNIMPLEMENTED!\n");
}
- Send a hacked access state to FS Drivers, they can depend on one. For
now use one with full FILE_ALL_ACCESS privileges.
Modified: trunk/reactos/ntoskrnl/io/file.c
_____
Modified: trunk/reactos/ntoskrnl/io/file.c
--- trunk/reactos/ntoskrnl/io/file.c 2005-11-08 16:41:58 UTC (rev
19055)
+++ trunk/reactos/ntoskrnl/io/file.c 2005-11-08 16:59:41 UTC (rev
19056)
@@ -758,6 +758,8 @@
LARGE_INTEGER SafeAllocationSize;
PVOID SystemEaBuffer = NULL;
NTSTATUS Status = STATUS_SUCCESS;
+ AUX_DATA AuxData;
+ ACCESS_STATE AccessState;
DPRINT("IoCreateFile(FileHandle 0x%p, DesiredAccess %x, "
"ObjectAttributes 0x%p ObjectAttributes->ObjectName->Buffer
%S)\n",
@@ -962,8 +964,14 @@
if (CreateOptions & FILE_NO_INTERMEDIATE_BUFFERING)
FileObject->Flags |= FO_NO_INTERMEDIATE_BUFFERING;
+ /*
+ * FIXME: We should get the access state from Ob once this function
becomes
+ * a parse routine once the Ob is refactored.
+ */
+ SeCreateAccessState(&AccessState, &AuxData, FILE_ALL_ACCESS, NULL);
+
SecurityContext.SecurityQos = NULL; /* ?? */
- SecurityContext.AccessState = NULL; /* ?? */
+ SecurityContext.AccessState = &AccessState;
SecurityContext.DesiredAccess = DesiredAccess;
SecurityContext.FullCreateOptions = 0; /* ?? */