mirror of
https://github.com/reactos/reactos.git
synced 2024-06-26 07:51:52 +00:00
95 lines
2.8 KiB
C
95 lines
2.8 KiB
C
![]() |
/*
|
||
|
* COPYRIGHT: See COPYING in the top level directory
|
||
|
* PROJECT: ReactOS kernel
|
||
|
* PURPOSE: Security manager
|
||
|
* FILE: kernel/se/semgr.c
|
||
|
* PROGRAMER: ?
|
||
|
* REVISION HISTORY:
|
||
|
* 26/07/98: Added stubs for security functions
|
||
|
*/
|
||
|
|
||
|
/* INCLUDES *****************************************************************/
|
||
|
|
||
|
#include <ddk/ntddk.h>
|
||
|
|
||
|
#include <internal/debug.h>
|
||
|
|
||
|
/* FUNCTIONS ***************************************************************/
|
||
|
|
||
|
NTSTATUS RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||
|
ULONG Revision)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
ULONG RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
NTSTATUS RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||
|
BOOLEAN DaclPresent,
|
||
|
PACL Dacl,
|
||
|
BOOLEAN DaclDefaulted)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
BOOLEAN RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
BOOLEAN SeSinglePrivilegeCheck(LUID PrivilegeValue,
|
||
|
KPROCESSOR_MODE PreviousMode)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
NTSTATUS SeDeassignSecurity(PSECURITY_DESCRIPTOR* SecurityDescriptor)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
NTSTATUS SeAssignSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,
|
||
|
PSECURITY_DESCRIPTOR ExplicitDescriptor,
|
||
|
BOOLEAN IsDirectoryObject,
|
||
|
PSECURITY_SUBJECT_CONTEXT SubjectContext,
|
||
|
PGENERIC_MAPPING GenericMapping,
|
||
|
POOL_TYPE PoolType)
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
BOOLEAN SeAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||
|
IN PSECURITY_DESCRIPTOR_CONTEXT SubjectSecurityContext,
|
||
|
IN BOOLEAN SubjectContextLocked,
|
||
|
IN ACCESS_MASK DesiredAccess,
|
||
|
IN ACCESS_MASK PreviouslyGrantedAccess,
|
||
|
OUT PPRIVILEGE_SET* Privileges,
|
||
|
IN PGENERIC_MAPPING GenericMapping,
|
||
|
IN KPROCESSOR_MODE AccessMode,
|
||
|
OUT PACCESS_MODE GrantedAccess,
|
||
|
OUT PNTSTATUS AccessStatus)
|
||
|
/*
|
||
|
* FUNCTION: Determines whether the requested access rights can be granted
|
||
|
* to an object protected by a security descriptor and an object owner
|
||
|
* ARGUMENTS:
|
||
|
* SecurityDescriptor = Security descriptor protected the object
|
||
|
* SubjectSecurityContext = Subject's captured security context
|
||
|
* SubjectContextLocked = Indicates the user's subject context is locked
|
||
|
* DesiredAccess = Access rights the caller is trying to acquire
|
||
|
* PreviouslyGrantedAccess = Specified the access rights already granted
|
||
|
* Priveleges = ?
|
||
|
* GenericMapping = Generic mapping associated with the object
|
||
|
* AccessMode = Access mode used for the check
|
||
|
* GrantedAccess (OUT) = On return specifies the access granted
|
||
|
* AccessStatus (OUT) = Status indicating why access was denied
|
||
|
* RETURNS: If access was granted, returns TRUE
|
||
|
*/
|
||
|
{
|
||
|
UNIMPLEMENTED;
|
||
|
}
|
||
|
|
||
|
|