1 <?xml version=
"1.0" encoding=
"UTF-8" ?>
4 Copyright 2010 Sun Microsystems, Inc. All rights reserved.
5 Use is subject to license terms.
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
27 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
29 <!-- set the output properties -->
30 <xsl:output method=
"html"/>
33 <xsl:template match=
"/">
35 <HEAD><TITLE>Audit Trail Data
</TITLE></HEAD>
36 <BODY BGColor=
"#FFFFFF" Text=
"#000000">
38 <FONT FACE=
"Arial" SIZE=
"+1">
39 <B>Audit Trail Data
</B>
43 <xsl:apply-templates/>
49 <!-- suppress non-selected nodes-->
50 <xsl:template match=
"*"/>
52 <!-- main rule for document element -->
53 <xsl:template match=
"audit">
55 <xsl:for-each select=
"record | file">
56 <xsl:if test=
"(self::file)">
62 <xsl:when test=
"@time">
63 <xsl:value-of select=
"@time"/>
64 +
<xsl:value-of select=
"@msec"/>msec
66 <xsl:when test=
"@iso8601">
67 <xsl:value-of select=
"@iso8601"/>
71 <xsl:value-of select=
"."/>
73 <xsl:if test=
"(self::record)">
77 <B><xsl:value-of select=
"@event"/></B><BR/>
80 <xsl:when test=
"@time">
81 <xsl:value-of select=
"@time"/>
82 +
<xsl:value-of select=
"@msec"/>msec
84 <xsl:when test=
"@iso8601">
85 <xsl:value-of select=
"@iso8601"/>
88 <I> vers:
</I><xsl:value-of select=
"@version"/>
89 <I> mod:
</I><xsl:value-of select=
"@modifier"/>
90 <I> host:
</I><xsl:value-of select=
"@host"/>
91 <xsl:apply-templates/>
96 <!-- Start of handling for remaining tokens -->
98 <xsl:template match=
"text">
100 <I>TEXT:
</I> <xsl:value-of select=
"."/>
103 <xsl:template match=
"path">
105 <I>PATH:
</I> <xsl:value-of select=
"."/>
108 <xsl:template match=
"path_attr">
111 <xsl:apply-templates/>
114 <xsl:template match=
"xattr">
116 <I>xattr:
</I> <xsl:value-of select=
"."/>
119 <xsl:template match=
"host">
121 <I>HOST:
</I> <xsl:value-of select=
"."/>
124 <xsl:template match=
"subject">
127 <I> audit-uid:
</I><xsl:value-of select=
"@audit-uid"/>
128 <I> uid:
</I><xsl:value-of select=
"@uid"/>
129 <I> gid:
</I><xsl:value-of select=
"@gid"/>
130 <I> ruid:
</I><xsl:value-of select=
"@ruid"/>
131 <I> rgid:
</I><xsl:value-of select=
"@rgid"/>
132 <I> pid:
</I><xsl:value-of select=
"@pid"/>
133 <I> sid:
</I><xsl:value-of select=
"@sid"/>
134 <I> tid:
</I><xsl:value-of select=
"@tid"/>
137 <xsl:template match=
"process">
140 <I> audit-uid:
</I><xsl:value-of select=
"@audit-uid"/>
141 <I> uid:
</I><xsl:value-of select=
"@uid"/>
142 <I> gid:
</I><xsl:value-of select=
"@gid"/>
143 <I> ruid:
</I><xsl:value-of select=
"@ruid"/>
144 <I> rgid:
</I><xsl:value-of select=
"@rgid"/>
145 <I> pid:
</I><xsl:value-of select=
"@pid"/>
146 <I> sid:
</I><xsl:value-of select=
"@sid"/>
147 <I> tid:
</I><xsl:value-of select=
"@tid"/>
150 <xsl:template match=
"return">
153 <I> errval:
</I><xsl:value-of select=
"@errval"/>
154 <I> retval:
</I><xsl:value-of select=
"@retval"/>
157 <xsl:template match=
"exit">
160 <I> errval:
</I><xsl:value-of select=
"@errval"/>
161 <I> retval:
</I><xsl:value-of select=
"@retval"/>
164 <xsl:template match=
"sequence">
167 <I> seq-num:
</I><xsl:value-of select=
"@seq-num"/>
170 <xsl:template match=
"fmri">
172 <I>FMRI:
</I> <xsl:value-of select=
"."/>
175 <xsl:template match=
"user">
178 <I> uid:
</I><xsl:value-of select=
"@uid"/>
179 <I> username:
</I><xsl:value-of select=
"@username"/>
182 <xsl:template match=
"group">
185 <xsl:apply-templates/>
188 <xsl:template match=
"gid">
190 <I>gid:
</I> <xsl:value-of select=
"."/>
193 <xsl:template match=
"opaque">
195 <I>OPAQUE:
</I> <xsl:value-of select=
"."/>
198 <xsl:template match=
"liaison">
200 <I>LIAISON:
</I> <xsl:value-of select=
"."/>
203 <xsl:template match=
"argument">
206 <I> arg-num:
</I><xsl:value-of select=
"@arg-num"/>
207 <I> value:
</I><xsl:value-of select=
"@value"/>
208 <I> desc:
</I><xsl:value-of select=
"@desc"/>
211 <xsl:template match=
"attribute">
214 <I> mode:
</I><xsl:value-of select=
"@mode"/>
215 <I> uid:
</I><xsl:value-of select=
"@uid"/>
216 <I> gid:
</I><xsl:value-of select=
"@gid"/>
217 <I> fsid:
</I><xsl:value-of select=
"@fsid"/>
218 <I> nodeid:
</I><xsl:value-of select=
"@nodeid"/>
219 <I> device:
</I><xsl:value-of select=
"@device"/>
222 <xsl:template match=
"cmd">
225 <xsl:apply-templates/>
228 <xsl:template match=
"argv">
230 <I>argv:
</I> <xsl:value-of select=
"."/>
233 <xsl:template match=
"arge">
235 <I>arge:
</I> <xsl:value-of select=
"."/>
238 <xsl:template match=
"exec_args">
241 <xsl:apply-templates/>
244 <xsl:template match=
"arg">
246 <I>arg:
</I> <xsl:value-of select=
"."/>
249 <xsl:template match=
"exec_env">
252 <xsl:apply-templates/>
255 <xsl:template match=
"env">
257 <I>env:
</I> <xsl:value-of select=
"."/>
260 <xsl:template match=
"arbitrary">
263 <I> print:
</I><xsl:value-of select=
"@print"/>
264 <I> type:
</I><xsl:value-of select=
"@type"/>
265 <I> count:
</I><xsl:value-of select=
"@count"/>
267 <xsl:value-of select=
"."/>
270 <xsl:template match=
"privilege">
273 <I> set-type:
</I><xsl:value-of select=
"@set-type"/>
275 <xsl:value-of select=
"."/>
278 <xsl:template match=
"use_of_privilege">
280 <I>USE_OF_PRIVILEGE:
</I>
281 <I> result:
</I><xsl:value-of select=
"@result"/>
283 <xsl:value-of select=
"."/>
286 <xsl:template match=
"secflags">
289 <I> set-type:
</I><xsl:value-of select=
"@set-type"/>
291 <xsl:value-of select=
"."/>
294 <xsl:template match=
"sensitivity_label">
296 <I>SENSITIVITY_LABEL:
</I> <xsl:value-of select=
"."/>
299 <xsl:template match=
"use_of_authorization">
301 <I>USE_OF_AUTHORIZATION:
</I> <xsl:value-of select=
"."/>
304 <xsl:template match=
"IPC">
307 <I> ipc-type:
</I><xsl:value-of select=
"@ipc-type"/>
308 <I> ipc-id:
</I><xsl:value-of select=
"@ipc-id"/>
311 <xsl:template match=
"IPC_perm">
314 <I> uid:
</I><xsl:value-of select=
"@uid"/>
315 <I> gid:
</I><xsl:value-of select=
"@gid"/>
316 <I> creator-uid:
</I><xsl:value-of select=
"@creator-uid"/>
317 <I> creator-gid:
</I><xsl:value-of select=
"@creator-gid"/>
318 <I> mode:
</I><xsl:value-of select=
"@mode"/>
319 <I> seq:
</I><xsl:value-of select=
"@seq"/>
320 <I> key:
</I><xsl:value-of select=
"@key"/>
323 <xsl:template match=
"ip_address">
325 <I>IP_ADDRESS:
</I> <xsl:value-of select=
"."/>
328 <xsl:template match=
"ip_port">
330 <I>IP_PORT:
</I> <xsl:value-of select=
"."/>
333 <xsl:template match=
"ip">
336 <I> version:
</I><xsl:value-of select=
"@version"/>
337 <I> service_type:
</I><xsl:value-of select=
"@service_type"/>
338 <I> len:
</I><xsl:value-of select=
"@len"/>
339 <I> id:
</I><xsl:value-of select=
"@id"/>
340 <I> offset:
</I><xsl:value-of select=
"@offset"/>
341 <I> time_to_live:
</I><xsl:value-of select=
"@time_to_live"/>
342 <I> protocol:
</I><xsl:value-of select=
"@protocol"/>
343 <I> cksum:
</I><xsl:value-of select=
"@cksum"/>
344 <I> src_addr:
</I><xsl:value-of select=
"@src_addr"/>
345 <I> dest_addr:
</I><xsl:value-of select=
"@dest_addr"/>
348 <xsl:template match=
"old_socket">
351 <I> type:
</I><xsl:value-of select=
"@type"/>
352 <I> port:
</I><xsl:value-of select=
"@port"/>
353 <I> addr:
</I><xsl:value-of select=
"@addr"/>
356 <xsl:template match=
"socket">
359 <I> sock_domain:
</I><xsl:value-of select=
"@sock_domain"/>
360 <I> sock_type:
</I><xsl:value-of select=
"@sock_type"/>
361 <I> lport:
</I><xsl:value-of select=
"@lport"/>
362 <I> laddr:
</I><xsl:value-of select=
"@laddr"/>
363 <I> fport:
</I><xsl:value-of select=
"@fport"/>
364 <I> faddr:
</I><xsl:value-of select=
"@faddr"/>
367 <xsl:template match=
"acl">
371 <xsl:when test=
"@mode"> <!-- old ACL entry -->
372 <I> type:
</I><xsl:value-of select=
"@type"/>
373 <I> value:
</I><xsl:value-of select=
"@value"/>
374 <I> mode:
</I><xsl:value-of select=
"@mode"/>
377 <I> flags:
</I><xsl:value-of select=
"@flags"/>
378 <I> id:
</I><xsl:value-of select=
"@id"/>
379 <I> access_mask:
</I><xsl:value-of select=
"@access_mask"/>
380 <I> type:
</I><xsl:value-of select=
"@type"/>
385 <xsl:template match=
"tid">
388 <I> type=
</I><xsl:value-of select=
"@type"/>
389 <xsl:apply-templates/>
392 <xsl:template match=
"ipadr">
393 <I> local-port:
</I><xsl:value-of select=
"@local-port"/>
394 <I> remote-port:
</I><xsl:value-of select=
"@remote-port"/>
395 <I> host:
</I><xsl:value-of select=
"@host"/>
398 <xsl:template match=
"X_atom">
400 <I>X_ATOM:
</I> <xsl:value-of select=
"."/>
403 <xsl:template match=
"X_color_map">
406 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
409 <xsl:template match=
"X_cursor">
412 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
415 <xsl:template match=
"X_font">
418 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
421 <xsl:template match=
"X_graphic_context">
423 <I>X_GRAPHIC_CONTEXT
</I>
424 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
427 <xsl:template match=
"X_pixmap">
430 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
433 <xsl:template match=
"X_window">
436 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
439 <xsl:template match=
"X_property">
442 <I> xid:
</I><xsl:value-of select=
"@xid"/><I> xcreator-uid:
</I><xsl:value-of select=
"@xcreator-uid"/>
444 <xsl:value-of select=
"."/>
447 <xsl:template match=
"X_client">
449 <I>X_CLIENT:
</I> <xsl:value-of select=
"."/>
452 <xsl:template match=
"X_selection">
455 <xsl:apply-templates/>
458 <xsl:template match=
"x_sel_text">
460 <I>x_sel_text:
</I> <xsl:value-of select=
"."/>
463 <xsl:template match=
"x_sel_type">
465 <I>x_sel_type:
</I> <xsl:value-of select=
"."/>
468 <xsl:template match=
"x_sel_data">
470 <I>x_sel_data:
</I> <xsl:value-of select=
"."/>
473 <xsl:template match=
"zone">
476 <I> name:
</I><xsl:value-of select=
"@name"/>