-/* $Id: ntobj.c,v 1.21 2004/07/17 12:08:21 ekohl Exp $
+/* $Id: ntobj.c,v 1.22 2004/07/19 12:48:59 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* RETURN VALUE
*
* REVISIONS
+ *
+ * @implemented
*/
NTSTATUS STDCALL
NtMakePermanentObject(IN HANDLE Handle)
-/* $Id: object.c,v 1.79 2004/07/18 13:03:43 ekohl Exp $
+/* $Id: object.c,v 1.80 2004/07/19 12:48:59 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
BOOLEAN ObjectAttached = FALSE;
PWCHAR NamePtr;
PSECURITY_DESCRIPTOR NewSecurityDescriptor = NULL;
+ SECURITY_SUBJECT_CONTEXT SubjectContext;
assert_irql(APC_LEVEL);
}
RtlFreeUnicodeString(&RemainingPath);
+ SeCaptureSubjectContext(&SubjectContext);
+
/* Build the new security descriptor */
Status = SeAssignSecurity((ParentHeader != NULL) ? ParentHeader->SecurityDescriptor : NULL,
(ObjectAttributes != NULL) ? ObjectAttributes->SecurityDescriptor : NULL,
&NewSecurityDescriptor,
(Header->ObjectType == ObDirectoryType),
- NULL, //SubjectContext,
+ &SubjectContext,
Header->ObjectType->Mapping,
PagedPool);
if (NT_SUCCESS(Status))
SeDeassignSecurity(&NewSecurityDescriptor);
}
+ SeReleaseSubjectContext(&SubjectContext);
+
if (Object != NULL)
{
*Object = HEADER_TO_BODY(Header);