ReactOS  0.4.14-dev-854-gb9426a3
access.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS system libraries
4  * FILE: lib/rtl/access.c
5  * PURPOSE: Access rights handling functions
6  * PROGRAMMERS: Eric Kohl
7  */
8 
9 /* INCLUDES *****************************************************************/
10 
11 #include <rtl.h>
12 #define NDEBUG
13 #include <debug.h>
14 
15 /* FUNCTIONS ***************************************************************/
16 
17 /*
18  * @implemented
19  */
20 BOOLEAN
21 NTAPI
24 {
26 
27  /* Return if there's no leftover bits after granting all of them */
28  return !(~GrantedAccess & DesiredAccess);
29 }
30 
31 /*
32  * @implemented
33  */
34 BOOLEAN
35 NTAPI
38 {
40 
41  /* Return if there's any leftover bits after granting all of them */
42  return ((GrantedAccess & DesiredAccess) != 0);
43 }
44 
45 /*
46  * @implemented
47  */
48 VOID
49 NTAPI
52 {
54 
55  /* Convert mappings */
60 
61  /* Clear generic flags */
63 }
64 
65 /* EOF */
#define IN
Definition: typedefs.h:38
BOOLEAN NTAPI RtlAreAllAccessesGranted(IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess)
Definition: access.c:22
#define GENERIC_ALL
Definition: nt_native.h:92
ACCESS_MASK GenericRead
Definition: nt_native.h:565
#define PAGED_CODE_RTL()
Definition: rtlp.h:16
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
ACCESS_MASK GenericExecute
Definition: nt_native.h:567
#define GENERIC_WRITE
Definition: nt_native.h:90
ACCESS_MASK GenericWrite
Definition: nt_native.h:566
unsigned char BOOLEAN
VOID NTAPI RtlMapGenericMask(IN OUT PACCESS_MASK AccessMask, IN PGENERIC_MAPPING GenericMapping)
Definition: access.c:50
_In_ ACCESS_MASK AccessMask
Definition: exfuncs.h:186
BOOLEAN NTAPI RtlAreAnyAccessesGranted(IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess)
Definition: access.c:36
#define GENERIC_READ
Definition: compat.h:124
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
_In_ PIO_STACK_LOCATION _Inout_ PFILE_OBJECT _Inout_ PVCB _Outptr_result_maybenull_ PDCB _In_ PDCB _In_ PDIRENT _In_ ULONG _In_ ULONG _In_ PUNICODE_STRING _In_ PACCESS_MASK DesiredAccess
Definition: create.c:4157
#define OUT
Definition: typedefs.h:39
ACCESS_MASK * PACCESS_MASK
Definition: nt_native.h:41
ACCESS_MASK GenericAll
Definition: nt_native.h:568
_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 GrantedAccess
Definition: sefuncs.h:13
#define GENERIC_EXECUTE
Definition: nt_native.h:91
ULONG ACCESS_MASK
Definition: nt_native.h:40