preliminary comment out the self-modifying code for RtlPrefetchMemoryNonTemporal
[reactos.git] / reactos / ntoskrnl / se / audit.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/se/audit.c
6 * PURPOSE: Audit functions
7 *
8 * PROGRAMMERS: Eric Kohl <eric.kohl@t-online.de>
9 */
10
11 /* INCLUDES *****************************************************************/
12
13 #include <ntoskrnl.h>
14 #include <internal/debug.h>
15
16
17 /* FUNCTIONS ****************************************************************/
18
19 NTSTATUS
20 STDCALL
21 NtAccessCheckAndAuditAlarm(IN PUNICODE_STRING SubsystemName,
22 IN PVOID HandleId,
23 IN PUNICODE_STRING ObjectTypeName,
24 IN PUNICODE_STRING ObjectName,
25 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
26 IN ACCESS_MASK DesiredAccess,
27 IN PGENERIC_MAPPING GenericMapping,
28 IN BOOLEAN ObjectCreation,
29 OUT PACCESS_MASK GrantedAccess,
30 OUT PNTSTATUS AccessStatus,
31 OUT PBOOLEAN GenerateOnClose)
32 {
33 UNIMPLEMENTED;
34 return(STATUS_NOT_IMPLEMENTED);
35 }
36
37
38 NTSTATUS STDCALL
39 NtCloseObjectAuditAlarm(IN PUNICODE_STRING SubsystemName,
40 IN PVOID HandleId,
41 IN BOOLEAN GenerateOnClose)
42 {
43 UNIMPLEMENTED;
44 return(STATUS_NOT_IMPLEMENTED);
45 }
46
47
48 NTSTATUS STDCALL
49 NtDeleteObjectAuditAlarm(IN PUNICODE_STRING SubsystemName,
50 IN PVOID HandleId,
51 IN BOOLEAN GenerateOnClose)
52 {
53 UNIMPLEMENTED;
54 return(STATUS_NOT_IMPLEMENTED);
55 }
56
57
58 NTSTATUS STDCALL
59 NtOpenObjectAuditAlarm(IN PUNICODE_STRING SubsystemName,
60 IN PVOID HandleId,
61 IN PUNICODE_STRING ObjectTypeName,
62 IN PUNICODE_STRING ObjectName,
63 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
64 IN HANDLE ClientToken,
65 IN ULONG DesiredAccess,
66 IN ULONG GrantedAccess,
67 IN PPRIVILEGE_SET Privileges,
68 IN BOOLEAN ObjectCreation,
69 IN BOOLEAN AccessGranted,
70 OUT PBOOLEAN GenerateOnClose)
71 {
72 UNIMPLEMENTED;
73 return(STATUS_NOT_IMPLEMENTED);
74 }
75
76
77 NTSTATUS STDCALL
78 NtPrivilegedServiceAuditAlarm(IN PUNICODE_STRING SubsystemName,
79 IN PUNICODE_STRING ServiceName,
80 IN HANDLE ClientToken,
81 IN PPRIVILEGE_SET Privileges,
82 IN BOOLEAN AccessGranted)
83 {
84 UNIMPLEMENTED;
85 return(STATUS_NOT_IMPLEMENTED);
86 }
87
88
89 NTSTATUS STDCALL
90 NtPrivilegeObjectAuditAlarm(IN PUNICODE_STRING SubsystemName,
91 IN PVOID HandleId,
92 IN HANDLE ClientToken,
93 IN ULONG DesiredAccess,
94 IN PPRIVILEGE_SET Privileges,
95 IN BOOLEAN AccessGranted)
96 {
97 UNIMPLEMENTED;
98 return(STATUS_NOT_IMPLEMENTED);
99 }
100
101
102 /*
103 * @unimplemented
104 */
105 VOID
106 STDCALL
107 SeAuditHardLinkCreation(
108 IN PUNICODE_STRING FileName,
109 IN PUNICODE_STRING LinkName,
110 IN BOOLEAN bSuccess
111 )
112 {
113 UNIMPLEMENTED;
114 }
115
116 /*
117 * @unimplemented
118 */
119 BOOLEAN
120 STDCALL
121 SeAuditingFileEvents(
122 IN BOOLEAN AccessGranted,
123 IN PSECURITY_DESCRIPTOR SecurityDescriptor
124 )
125 {
126 UNIMPLEMENTED;
127 return FALSE;
128 }
129
130 /*
131 * @unimplemented
132 */
133 BOOLEAN
134 STDCALL
135 SeAuditingFileEventsWithContext(
136 IN BOOLEAN AccessGranted,
137 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
138 IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext OPTIONAL
139 )
140 {
141 UNIMPLEMENTED;
142 return FALSE;
143 }
144
145 /*
146 * @unimplemented
147 */
148 BOOLEAN
149 STDCALL
150 SeAuditingHardLinkEvents(
151 IN BOOLEAN AccessGranted,
152 IN PSECURITY_DESCRIPTOR SecurityDescriptor
153 )
154 {
155 UNIMPLEMENTED;
156 return FALSE;
157 }
158
159 /*
160 * @unimplemented
161 */
162 BOOLEAN
163 STDCALL
164 SeAuditingHardLinkEventsWithContext(
165 IN BOOLEAN AccessGranted,
166 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
167 IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext OPTIONAL
168 )
169 {
170 UNIMPLEMENTED;
171 return FALSE;
172 }
173
174 /*
175 * @unimplemented
176 */
177 BOOLEAN
178 STDCALL
179 SeAuditingFileOrGlobalEvents(
180 IN BOOLEAN AccessGranted,
181 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
182 IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext
183 )
184 {
185 UNIMPLEMENTED;
186 return FALSE;
187 }
188
189 /*
190 * @unimplemented
191 */
192 VOID
193 STDCALL
194 SeCloseObjectAuditAlarm(
195 IN PVOID Object,
196 IN HANDLE Handle,
197 IN BOOLEAN PerformAction
198 )
199 {
200 UNIMPLEMENTED;
201 }
202
203 /*
204 * @unimplemented
205 */
206 VOID STDCALL
207 SeDeleteObjectAuditAlarm(IN PVOID Object,
208 IN HANDLE Handle)
209 {
210 UNIMPLEMENTED;
211 }
212
213
214 /*
215 * @unimplemented
216 */
217 VOID STDCALL
218 SeOpenObjectAuditAlarm(IN PUNICODE_STRING ObjectTypeName,
219 IN PVOID Object OPTIONAL,
220 IN PUNICODE_STRING AbsoluteObjectName OPTIONAL,
221 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
222 IN PACCESS_STATE AccessState,
223 IN BOOLEAN ObjectCreated,
224 IN BOOLEAN AccessGranted,
225 IN KPROCESSOR_MODE AccessMode,
226 OUT PBOOLEAN GenerateOnClose)
227 {
228 DPRINT1("SeOpenObjectAuditAlarm is UNIMPLEMENTED!\n");
229 }
230
231
232 /*
233 * @unimplemented
234 */
235 VOID STDCALL
236 SeOpenObjectForDeleteAuditAlarm(IN PUNICODE_STRING ObjectTypeName,
237 IN PVOID Object OPTIONAL,
238 IN PUNICODE_STRING AbsoluteObjectName OPTIONAL,
239 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
240 IN PACCESS_STATE AccessState,
241 IN BOOLEAN ObjectCreated,
242 IN BOOLEAN AccessGranted,
243 IN KPROCESSOR_MODE AccessMode,
244 OUT PBOOLEAN GenerateOnClose)
245 {
246 UNIMPLEMENTED;
247 }
248
249 /*
250 * @unimplemented
251 */
252 VOID
253 STDCALL
254 SePrivilegeObjectAuditAlarm(
255 IN HANDLE Handle,
256 IN PSECURITY_SUBJECT_CONTEXT SubjectContext,
257 IN ACCESS_MASK DesiredAccess,
258 IN PPRIVILEGE_SET Privileges,
259 IN BOOLEAN AccessGranted,
260 IN KPROCESSOR_MODE CurrentMode
261 )
262 {
263 UNIMPLEMENTED;
264 }
265
266 /* EOF */