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