Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libbsm/adt_record.xsl.1
+++ new/usr/src/lib/libbsm/adt_record.xsl.1
1 1 <?xml version="1.0" encoding="UTF-8" ?>
2 2
3 3 <!--
4 4 Copyright 2010 Sun Microsystems, Inc. All rights reserved.
5 5 Use is subject to license terms.
6 6
7 7 CDDL HEADER START
8 8
9 9 The contents of this file are subject to the terms of the
10 10 Common Development and Distribution License (the "License").
11 11 You may not use this file except in compliance with the License.
12 12
13 13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 14 or http://www.opensolaris.org/os/licensing.
15 15 See the License for the specific language governing permissions
16 16 and limitations under the License.
17 17
18 18 When distributing Covered Code, include this CDDL HEADER in each
19 19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 20 If applicable, add the following below this CDDL HEADER, with the
21 21 fields enclosed by brackets "[]" replaced with your own identifying
22 22 information: Portions Copyright [yyyy] [name of copyright owner]
23 23
24 24 CDDL HEADER END
25 25 -->
26 26
27 27 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
28 28
29 29 <!-- set the output properties -->
30 30 <xsl:output method="html"/>
31 31
32 32 <!-- root rule -->
33 33 <xsl:template match="/">
34 34 <HTML>
35 35 <HEAD><TITLE>Audit Trail Data</TITLE></HEAD>
36 36 <BODY BGColor="#FFFFFF" Text="#000000">
37 37 <CENTER>
38 38 <FONT FACE="Arial" SIZE="+1">
39 39 <B>Audit Trail Data</B>
40 40 </FONT>
41 41 <BR/>
42 42 </CENTER>
43 43 <xsl:apply-templates/>
44 44 <HR/>
45 45 </BODY>
46 46 </HTML>
47 47 </xsl:template>
48 48
49 49 <!-- suppress non-selected nodes-->
50 50 <xsl:template match="*"/>
51 51
52 52 <!-- main rule for document element -->
53 53 <xsl:template match="audit">
54 54 <HR/>
55 55 <xsl:for-each select="record | file">
56 56 <xsl:if test="(self::file)">
57 57 <BR/>
58 58 <BR/>
59 59 <B>File: </B>
60 60 <I>time: </I>
61 61 <xsl:choose>
62 62 <xsl:when test="@time">
63 63 <xsl:value-of select="@time"/>
64 64 + <xsl:value-of select="@msec"/>msec
65 65 </xsl:when>
66 66 <xsl:when test="@iso8601">
67 67 <xsl:value-of select="@iso8601"/>
68 68 </xsl:when>
69 69 </xsl:choose>
70 70 <BR/>
71 71 <xsl:value-of select="."/>
72 72 </xsl:if>
73 73 <xsl:if test="(self::record)">
74 74 <BR/>
75 75 <BR/>
76 76 <B>Event: </B>
77 77 <B><xsl:value-of select="@event"/></B><BR/>
78 78 <I>time: </I>
79 79 <xsl:choose>
80 80 <xsl:when test="@time">
81 81 <xsl:value-of select="@time"/>
82 82 + <xsl:value-of select="@msec"/>msec
83 83 </xsl:when>
84 84 <xsl:when test="@iso8601">
85 85 <xsl:value-of select="@iso8601"/>
86 86 </xsl:when>
87 87 </xsl:choose>
88 88 <I> vers: </I><xsl:value-of select="@version"/>
89 89 <I> mod: </I><xsl:value-of select="@modifier"/>
90 90 <I> host: </I><xsl:value-of select="@host"/>
91 91 <xsl:apply-templates/>
92 92 </xsl:if>
93 93 </xsl:for-each>
94 94 </xsl:template>
95 95
96 96 <!-- Start of handling for remaining tokens -->
97 97
98 98 <xsl:template match="text">
99 99 <BR/>
100 100 <I>TEXT: </I> <xsl:value-of select="."/>
101 101 </xsl:template>
102 102
103 103 <xsl:template match="path">
104 104 <BR/>
105 105 <I>PATH: </I> <xsl:value-of select="."/>
106 106 </xsl:template>
107 107
108 108 <xsl:template match="path_attr">
109 109 <BR/>
110 110 <I>PATH_ATTR </I>
111 111 <xsl:apply-templates/>
112 112 </xsl:template>
113 113
114 114 <xsl:template match="xattr">
115 115 <BR/>
116 116 <I>xattr: </I> <xsl:value-of select="."/>
117 117 </xsl:template>
118 118
119 119 <xsl:template match="host">
120 120 <BR/>
121 121 <I>HOST: </I> <xsl:value-of select="."/>
122 122 </xsl:template>
123 123
124 124 <xsl:template match="subject">
125 125 <BR/>
126 126 <I>SUBJECT </I>
127 127 <I> audit-uid: </I><xsl:value-of select="@audit-uid"/>
128 128 <I> uid: </I><xsl:value-of select="@uid"/>
129 129 <I> gid: </I><xsl:value-of select="@gid"/>
130 130 <I> ruid: </I><xsl:value-of select="@ruid"/>
131 131 <I> rgid: </I><xsl:value-of select="@rgid"/>
132 132 <I> pid: </I><xsl:value-of select="@pid"/>
133 133 <I> sid: </I><xsl:value-of select="@sid"/>
134 134 <I> tid: </I><xsl:value-of select="@tid"/>
135 135 </xsl:template>
136 136
137 137 <xsl:template match="process">
138 138 <BR/>
139 139 <I>PROCESS </I>
140 140 <I> audit-uid: </I><xsl:value-of select="@audit-uid"/>
141 141 <I> uid: </I><xsl:value-of select="@uid"/>
142 142 <I> gid: </I><xsl:value-of select="@gid"/>
143 143 <I> ruid: </I><xsl:value-of select="@ruid"/>
144 144 <I> rgid: </I><xsl:value-of select="@rgid"/>
145 145 <I> pid: </I><xsl:value-of select="@pid"/>
146 146 <I> sid: </I><xsl:value-of select="@sid"/>
147 147 <I> tid: </I><xsl:value-of select="@tid"/>
148 148 </xsl:template>
149 149
150 150 <xsl:template match="return">
151 151 <BR/>
152 152 <I>RETURN </I>
153 153 <I> errval: </I><xsl:value-of select="@errval"/>
154 154 <I> retval: </I><xsl:value-of select="@retval"/>
155 155 </xsl:template>
156 156
157 157 <xsl:template match="exit">
158 158 <BR/>
159 159 <I>EXIT </I>
160 160 <I> errval: </I><xsl:value-of select="@errval"/>
161 161 <I> retval: </I><xsl:value-of select="@retval"/>
162 162 </xsl:template>
163 163
164 164 <xsl:template match="sequence">
165 165 <BR/>
166 166 <I>SEQUENCE </I>
167 167 <I> seq-num: </I><xsl:value-of select="@seq-num"/>
168 168 </xsl:template>
169 169
170 170 <xsl:template match="fmri">
171 171 <BR/>
172 172 <I>FMRI: </I> <xsl:value-of select="."/>
173 173 </xsl:template>
174 174
175 175 <xsl:template match="user">
176 176 <BR/>
177 177 <I>USER </I>
178 178 <I> uid: </I><xsl:value-of select="@uid"/>
179 179 <I> username: </I><xsl:value-of select="@username"/>
180 180 </xsl:template>
181 181
182 182 <xsl:template match="group">
183 183 <BR/>
184 184 <I>GROUP </I>
185 185 <xsl:apply-templates/>
186 186 </xsl:template>
187 187
188 188 <xsl:template match="gid">
189 189 <BR/>
190 190 <I>gid: </I> <xsl:value-of select="."/>
191 191 </xsl:template>
192 192
193 193 <xsl:template match="opaque">
194 194 <BR/>
195 195 <I>OPAQUE: </I> <xsl:value-of select="."/>
196 196 </xsl:template>
197 197
198 198 <xsl:template match="liaison">
199 199 <BR/>
200 200 <I>LIAISON: </I> <xsl:value-of select="."/>
201 201 </xsl:template>
202 202
203 203 <xsl:template match="argument">
204 204 <BR/>
205 205 <I>ARGUMENT </I>
206 206 <I> arg-num: </I><xsl:value-of select="@arg-num"/>
207 207 <I> value: </I><xsl:value-of select="@value"/>
208 208 <I> desc: </I><xsl:value-of select="@desc"/>
209 209 </xsl:template>
210 210
211 211 <xsl:template match="attribute">
212 212 <BR/>
213 213 <I>ATTRIBUTE </I>
214 214 <I> mode: </I><xsl:value-of select="@mode"/>
215 215 <I> uid: </I><xsl:value-of select="@uid"/>
216 216 <I> gid: </I><xsl:value-of select="@gid"/>
217 217 <I> fsid: </I><xsl:value-of select="@fsid"/>
218 218 <I> nodeid: </I><xsl:value-of select="@nodeid"/>
219 219 <I> device: </I><xsl:value-of select="@device"/>
220 220 </xsl:template>
221 221
222 222 <xsl:template match="cmd">
223 223 <BR/>
224 224 <I>CMD </I>
225 225 <xsl:apply-templates/>
226 226 </xsl:template>
227 227
228 228 <xsl:template match="argv">
229 229 <BR/>
230 230 <I>argv: </I> <xsl:value-of select="."/>
231 231 </xsl:template>
232 232
233 233 <xsl:template match="arge">
234 234 <BR/>
235 235 <I>arge: </I> <xsl:value-of select="."/>
236 236 </xsl:template>
237 237
238 238 <xsl:template match="exec_args">
239 239 <BR/>
240 240 <I>EXEC_ARGS </I>
241 241 <xsl:apply-templates/>
242 242 </xsl:template>
243 243
244 244 <xsl:template match="arg">
245 245 <BR/>
246 246 <I>arg: </I> <xsl:value-of select="."/>
247 247 </xsl:template>
248 248
249 249 <xsl:template match="exec_env">
250 250 <BR/>
251 251 <I>EXEC_ENV </I>
252 252 <xsl:apply-templates/>
253 253 </xsl:template>
254 254
255 255 <xsl:template match="env">
256 256 <BR/>
257 257 <I>env: </I> <xsl:value-of select="."/>
258 258 </xsl:template>
259 259
260 260 <xsl:template match="arbitrary">
261 261 <BR/>
262 262 <I>ARBITRARY: </I>
263 263 <I> print: </I><xsl:value-of select="@print"/>
264 264 <I> type: </I><xsl:value-of select="@type"/>
265 265 <I> count: </I><xsl:value-of select="@count"/>
266 266 <BR/>
267 267 <xsl:value-of select="."/>
268 268 </xsl:template>
269 269
270 270 <xsl:template match="privilege">
271 271 <BR/>
272 272 <I>PRIVILEGE: </I>
273 273 <I> set-type: </I><xsl:value-of select="@set-type"/>
274 274 <BR/>
275 275 <xsl:value-of select="."/>
↓ open down ↓ |
275 lines elided |
↑ open up ↑ |
276 276 </xsl:template>
277 277
278 278 <xsl:template match="use_of_privilege">
279 279 <BR/>
280 280 <I>USE_OF_PRIVILEGE: </I>
281 281 <I> result: </I><xsl:value-of select="@result"/>
282 282 <BR/>
283 283 <xsl:value-of select="."/>
284 284 </xsl:template>
285 285
286 +<xsl:template match="secflags">
287 + <BR/>
288 + <I>SECFLAGS: </I>
289 + <I> set-type: </I><xsl:value-of select="@set-type"/>
290 + <BR/>
291 + <xsl:value-of select="."/>
292 +</xsl:template>
293 +
286 294 <xsl:template match="sensitivity_label">
287 295 <BR/>
288 296 <I>SENSITIVITY_LABEL: </I> <xsl:value-of select="."/>
289 297 </xsl:template>
290 298
291 299 <xsl:template match="use_of_authorization">
292 300 <BR/>
293 301 <I>USE_OF_AUTHORIZATION: </I> <xsl:value-of select="."/>
294 302 </xsl:template>
295 303
296 304 <xsl:template match="IPC">
297 305 <BR/>
298 306 <I>IPC </I>
299 307 <I> ipc-type: </I><xsl:value-of select="@ipc-type"/>
300 308 <I> ipc-id: </I><xsl:value-of select="@ipc-id"/>
301 309 </xsl:template>
302 310
303 311 <xsl:template match="IPC_perm">
304 312 <BR/>
305 313 <I>IPC_PERM </I>
306 314 <I> uid: </I><xsl:value-of select="@uid"/>
307 315 <I> gid: </I><xsl:value-of select="@gid"/>
308 316 <I> creator-uid: </I><xsl:value-of select="@creator-uid"/>
309 317 <I> creator-gid: </I><xsl:value-of select="@creator-gid"/>
310 318 <I> mode: </I><xsl:value-of select="@mode"/>
311 319 <I> seq: </I><xsl:value-of select="@seq"/>
312 320 <I> key: </I><xsl:value-of select="@key"/>
313 321 </xsl:template>
314 322
315 323 <xsl:template match="ip_address">
316 324 <BR/>
317 325 <I>IP_ADDRESS: </I> <xsl:value-of select="."/>
318 326 </xsl:template>
319 327
320 328 <xsl:template match="ip_port">
321 329 <BR/>
322 330 <I>IP_PORT: </I> <xsl:value-of select="."/>
323 331 </xsl:template>
324 332
325 333 <xsl:template match="ip">
326 334 <BR/>
327 335 <I>IP </I>
328 336 <I> version: </I><xsl:value-of select="@version"/>
329 337 <I> service_type: </I><xsl:value-of select="@service_type"/>
330 338 <I> len: </I><xsl:value-of select="@len"/>
331 339 <I> id: </I><xsl:value-of select="@id"/>
332 340 <I> offset: </I><xsl:value-of select="@offset"/>
333 341 <I> time_to_live: </I><xsl:value-of select="@time_to_live"/>
334 342 <I> protocol: </I><xsl:value-of select="@protocol"/>
335 343 <I> cksum: </I><xsl:value-of select="@cksum"/>
336 344 <I> src_addr: </I><xsl:value-of select="@src_addr"/>
337 345 <I> dest_addr: </I><xsl:value-of select="@dest_addr"/>
338 346 </xsl:template>
339 347
340 348 <xsl:template match="old_socket">
341 349 <BR/>
342 350 <I>OLD_SOCKET </I>
343 351 <I> type: </I><xsl:value-of select="@type"/>
344 352 <I> port: </I><xsl:value-of select="@port"/>
345 353 <I> addr: </I><xsl:value-of select="@addr"/>
346 354 </xsl:template>
347 355
348 356 <xsl:template match="socket">
349 357 <BR/>
350 358 <I>SOCKET </I>
351 359 <I> sock_domain: </I><xsl:value-of select="@sock_domain"/>
352 360 <I> sock_type: </I><xsl:value-of select="@sock_type"/>
353 361 <I> lport: </I><xsl:value-of select="@lport"/>
354 362 <I> laddr: </I><xsl:value-of select="@laddr"/>
355 363 <I> fport: </I><xsl:value-of select="@fport"/>
356 364 <I> faddr: </I><xsl:value-of select="@faddr"/>
357 365 </xsl:template>
358 366
359 367 <xsl:template match="acl">
360 368 <BR/>
361 369 <I>ACL </I>
362 370 <xsl:choose>
363 371 <xsl:when test="@mode"> <!-- old ACL entry -->
364 372 <I> type: </I><xsl:value-of select="@type"/>
365 373 <I> value: </I><xsl:value-of select="@value"/>
366 374 <I> mode: </I><xsl:value-of select="@mode"/>
367 375 </xsl:when>
368 376 <xsl:otherwise>
369 377 <I> flags: </I><xsl:value-of select="@flags"/>
370 378 <I> id: </I><xsl:value-of select="@id"/>
371 379 <I> access_mask: </I><xsl:value-of select="@access_mask"/>
372 380 <I> type: </I><xsl:value-of select="@type"/>
373 381 </xsl:otherwise>
374 382 </xsl:choose>
375 383 </xsl:template>
376 384
377 385 <xsl:template match="tid">
378 386 <BR/>
379 387 <I>terminal id: </I>
380 388 <I> type=</I><xsl:value-of select="@type"/>
381 389 <xsl:apply-templates/>
382 390 </xsl:template>
383 391
384 392 <xsl:template match="ipadr">
385 393 <I> local-port: </I><xsl:value-of select="@local-port"/>
386 394 <I> remote-port: </I><xsl:value-of select="@remote-port"/>
387 395 <I> host: </I><xsl:value-of select="@host"/>
388 396 </xsl:template>
389 397
390 398 <xsl:template match="X_atom">
391 399 <BR/>
392 400 <I>X_ATOM: </I> <xsl:value-of select="."/>
393 401 </xsl:template>
394 402
395 403 <xsl:template match="X_color_map">
396 404 <BR/>
397 405 <I>X_COLOR_MAP </I>
398 406 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
399 407 </xsl:template>
400 408
401 409 <xsl:template match="X_cursor">
402 410 <BR/>
403 411 <I>X_CURSOR </I>
404 412 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
405 413 </xsl:template>
406 414
407 415 <xsl:template match="X_font">
408 416 <BR/>
409 417 <I>X_FONT </I>
410 418 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
411 419 </xsl:template>
412 420
413 421 <xsl:template match="X_graphic_context">
414 422 <BR/>
415 423 <I>X_GRAPHIC_CONTEXT </I>
416 424 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
417 425 </xsl:template>
418 426
419 427 <xsl:template match="X_pixmap">
420 428 <BR/>
421 429 <I>X_PIXMAP </I>
422 430 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
423 431 </xsl:template>
424 432
425 433 <xsl:template match="X_window">
426 434 <BR/>
427 435 <I>X_WINDOW </I>
428 436 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
429 437 </xsl:template>
430 438
431 439 <xsl:template match="X_property">
432 440 <BR/>
433 441 <I>X_PROPERTY: </I>
434 442 <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
435 443 <BR/>
436 444 <xsl:value-of select="."/>
437 445 </xsl:template>
438 446
439 447 <xsl:template match="X_client">
440 448 <BR/>
441 449 <I>X_CLIENT: </I> <xsl:value-of select="."/>
442 450 </xsl:template>
443 451
444 452 <xsl:template match="X_selection">
445 453 <BR/>
446 454 <I>X_SELECTION </I>
447 455 <xsl:apply-templates/>
448 456 </xsl:template>
449 457
450 458 <xsl:template match="x_sel_text">
451 459 <BR/>
452 460 <I>x_sel_text: </I> <xsl:value-of select="."/>
453 461 </xsl:template>
454 462
455 463 <xsl:template match="x_sel_type">
456 464 <BR/>
457 465 <I>x_sel_type: </I> <xsl:value-of select="."/>
458 466 </xsl:template>
459 467
460 468 <xsl:template match="x_sel_data">
461 469 <BR/>
462 470 <I>x_sel_data: </I> <xsl:value-of select="."/>
463 471 </xsl:template>
464 472
465 473 <xsl:template match="zone">
466 474 <BR/>
467 475 <I>ZONE </I>
468 476 <I> name: </I><xsl:value-of select="@name"/>
469 477 </xsl:template>
470 478
471 479 </xsl:stylesheet>
↓ open down ↓ |
176 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX