Implement SeQueryAuthenticationIdToken().

Add audit function stubs.

svn path=/trunk/; revision=9434
This commit is contained in:
Eric Kohl 2004-05-18 12:24:40 +00:00
parent 0cc2f5d9be
commit 9c4dd6241a
4 changed files with 68 additions and 14 deletions

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.def,v 1.179 2004/03/12 19:40:29 navaraf Exp $
; $Id: ntoskrnl.def,v 1.180 2004/05/18 12:24:40 ekohl Exp $
;
; reactos/ntoskrnl/ntoskrnl.def
;
@ -892,18 +892,18 @@ SeCaptureSubjectContext@4
SeCreateClientSecurity@16
SeDeassignSecurity@4
;SeDeleteAccessState@4
;SeDeleteObjectAuditAlarm@8
SeDeleteObjectAuditAlarm@8
SeExports DATA
;SeFreePrivileges@4
SeImpersonateClient@8
;SeLockSubjectContext@4
;SeMarkLogonSessionForTerminationNotification@4
;SeOpenObjectAuditAlarm@36
;SeOpenObjectForDeleteAuditAlarm@36
SeOpenObjectAuditAlarm@36
SeOpenObjectForDeleteAuditAlarm@36
SePrivilegeCheck@12
;SePrivilegeObjectAuditAlarm@24
SePublicDefaultDacl DATA
;SeQueryAuthenticationIdToken@8
SeQueryAuthenticationIdToken@8
;SeQuerySecurityDescriptorInfo@16
;SeRegisterLogonSessionTerminatedRoutine@4
;SeReleaseSecurityDescriptor@12

View file

@ -1,4 +1,4 @@
; $Id: ntoskrnl.edf,v 1.165 2004/03/12 19:40:29 navaraf Exp $
; $Id: ntoskrnl.edf,v 1.166 2004/05/18 12:24:40 ekohl Exp $
;
; reactos/ntoskrnl/ntoskrnl.def
;
@ -892,18 +892,18 @@ SeCaptureSubjectContext=SeCaptureSubjectContext@4
SeCreateClientSecurity=SeCreateClientSecurity@16
SeDeassignSecurity=SeDeassignSecurity@4
;SeDeleteAccessState=SeDeleteAccessState@4
;SeDeleteObjectAuditAlarm=SeDeleteObjectAuditAlarm@8
SeDeleteObjectAuditAlarm=SeDeleteObjectAuditAlarm@8
SeExports DATA
;SeFreePrivileges=SeFreePrivileges@4
SeImpersonateClient=SeImpersonateClient@8
;SeLockSubjectContext=SeLockSubjectContext@4
;SeMarkLogonSessionForTerminationNotification=SeMarkLogonSessionForTerminationNotification@4
;SeOpenObjectAuditAlarm=SeOpenObjectAuditAlarm@36
;SeOpenObjectForDeleteAuditAlarm=SeOpenObjectForDeleteAuditAlarm@36
SeOpenObjectAuditAlarm=SeOpenObjectAuditAlarm@36
SeOpenObjectForDeleteAuditAlarm=SeOpenObjectForDeleteAuditAlarm@36
SePrivilegeCheck=SePrivilegeCheck@12
;SePrivilegeObjectAuditAlarm=SePrivilegeObjectAuditAlarm@24
SePublicDefaultDacl DATA
;SeQueryAuthenticationIdToken=SeQueryAuthenticationIdToken@8
SeQueryAuthenticationIdToken=SeQueryAuthenticationIdToken@8
;SeQuerySecurityDescriptorInfo=SeQuerySecurityDescriptorInfo@16
;SeRegisterLogonSessionTerminatedRoutine=SeRegisterLogonSessionTerminatedRoutine@4
;SeReleaseSecurityDescriptor=SeReleaseSecurityDescriptor@12

View file

@ -1,4 +1,4 @@
/* $Id: audit.c,v 1.2 2003/12/14 17:44:02 hbirr Exp $
/* $Id: audit.c,v 1.3 2004/05/18 12:23:48 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -100,4 +100,42 @@ NtPrivilegeObjectAuditAlarm(IN PUNICODE_STRING SubsystemName,
return(STATUS_NOT_IMPLEMENTED);
}
VOID STDCALL
SeDeleteObjectAuditAlarm(IN PVOID Object,
IN HANDLE Handle)
{
UNIMPLEMENTED;
}
VOID STDCALL
SeOpenObjectAuditAlarm(IN PUNICODE_STRING ObjectTypeName,
IN PVOID Object OPTIONAL,
IN PUNICODE_STRING AbsoluteObjectName OPTIONAL,
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
IN PACCESS_STATE AccessState,
IN BOOLEAN ObjectCreated,
IN BOOLEAN AccessGranted,
IN KPROCESSOR_MODE AccessMode,
OUT PBOOLEAN GenerateOnClose)
{
UNIMPLEMENTED;
}
VOID STDCALL
SeOpenObjectForDeleteAuditAlarm(IN PUNICODE_STRING ObjectTypeName,
IN PVOID Object OPTIONAL,
IN PUNICODE_STRING AbsoluteObjectName OPTIONAL,
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
IN PACCESS_STATE AccessState,
IN BOOLEAN ObjectCreated,
IN BOOLEAN AccessGranted,
IN KPROCESSOR_MODE AccessMode,
OUT PBOOLEAN GenerateOnClose)
{
UNIMPLEMENTED;
}
/* EOF */

View file

@ -1,4 +1,4 @@
/* $Id: token.c,v 1.34 2004/03/19 12:47:17 ekohl Exp $
/* $Id: token.c,v 1.35 2004/05/18 12:23:48 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -1504,13 +1504,27 @@ NtCreateToken(OUT PHANDLE UnsafeTokenHandle,
}
/*
* @implemented
*/
NTSTATUS STDCALL
SeQueryAuthenticationIdToken(IN PACCESS_TOKEN Token,
OUT PLUID LogonId)
{
LogonId->LowPart = Token->AuthenticationId.LowPart;
LogonId->HighPart = Token->AuthenticationId.HighPart;
return STATUS_SUCCESS;
}
/*
* @implemented
*/
SECURITY_IMPERSONATION_LEVEL STDCALL
SeTokenImpersonationLevel(IN PACCESS_TOKEN Token)
{
return(Token->ImpersonationLevel);
return Token->ImpersonationLevel;
}
@ -1520,7 +1534,9 @@ SeTokenImpersonationLevel(IN PACCESS_TOKEN Token)
TOKEN_TYPE STDCALL
SeTokenType(IN PACCESS_TOKEN Token)
{
return(Token->TokenType);
return Token->TokenType;
}
/* EOF */