2N/A<?xml version="1.0" encoding="UTF-8" ?>
2N/A
2N/A<!--
2N/A Copyright 2010 Sun Microsystems, Inc. All rights reserved.
2N/A Use is subject to license terms.
2N/A
2N/A CDDL HEADER START
2N/A
2N/A The contents of this file are subject to the terms of the
2N/A Common Development and Distribution License (the "License").
2N/A You may not use this file except in compliance with the License.
2N/A
2N/A You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A or http://www.opensolaris.org/os/licensing.
2N/A See the License for the specific language governing permissions
2N/A and limitations under the License.
2N/A
2N/A When distributing Covered Code, include this CDDL HEADER in each
2N/A file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A If applicable, add the following below this CDDL HEADER, with the
2N/A fields enclosed by brackets "[]" replaced with your own identifying
2N/A information: Portions Copyright [yyyy] [name of copyright owner]
2N/A
2N/A CDDL HEADER END
2N/A-->
2N/A
2N/A<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2N/A
2N/A<!-- set the output properties -->
2N/A<xsl:output method="html"/>
2N/A
2N/A<!-- root rule -->
2N/A<xsl:template match="/">
2N/A<HTML>
2N/A <HEAD><TITLE>Audit Trail Data</TITLE></HEAD>
2N/A <BODY BGColor="#FFFFFF" Text="#000000">
2N/A <CENTER>
2N/A <FONT FACE="Arial" SIZE="+1">
2N/A <B>Audit Trail Data</B>
2N/A </FONT>
2N/A <BR/>
2N/A </CENTER>
2N/A <xsl:apply-templates/>
2N/A <HR/>
2N/A </BODY>
2N/A</HTML>
2N/A</xsl:template>
2N/A
2N/A<!-- suppress non-selected nodes-->
2N/A<xsl:template match="*"/>
2N/A
2N/A<!-- main rule for document element -->
2N/A<xsl:template match="audit">
2N/A <HR/>
2N/A <xsl:for-each select="record | file">
2N/A <xsl:if test="(self::file)">
2N/A <BR/>
2N/A <BR/>
2N/A <B>File: </B>
2N/A <I>time: </I>
2N/A <xsl:choose>
2N/A <xsl:when test="@time">
2N/A <xsl:value-of select="@time"/>
2N/A + <xsl:value-of select="@msec"/>msec
2N/A </xsl:when>
2N/A <xsl:when test="@iso8601">
2N/A <xsl:value-of select="@iso8601"/>
2N/A </xsl:when>
2N/A </xsl:choose>
2N/A <BR/>
2N/A <xsl:value-of select="."/>
2N/A </xsl:if>
2N/A <xsl:if test="(self::record)">
2N/A <BR/>
2N/A <BR/>
2N/A <B>Event: </B>
2N/A <B><xsl:value-of select="@event"/></B><BR/>
2N/A <I>time: </I>
2N/A <xsl:choose>
2N/A <xsl:when test="@time">
2N/A <xsl:value-of select="@time"/>
2N/A + <xsl:value-of select="@msec"/>msec
2N/A </xsl:when>
2N/A <xsl:when test="@iso8601">
2N/A <xsl:value-of select="@iso8601"/>
2N/A </xsl:when>
2N/A </xsl:choose>
2N/A <I> vers: </I><xsl:value-of select="@version"/>
2N/A <I> mod: </I><xsl:value-of select="@modifier"/>
2N/A <I> host: </I><xsl:value-of select="@host"/>
2N/A <xsl:apply-templates/>
2N/A </xsl:if>
2N/A </xsl:for-each>
2N/A</xsl:template>
2N/A
2N/A<!-- Start of handling for remaining tokens -->
2N/A
2N/A<xsl:template match="text">
2N/A <BR/>
2N/A <I>TEXT: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="path">
2N/A <BR/>
2N/A <I>PATH: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="path_attr">
2N/A <BR/>
2N/A <I>PATH_ATTR </I>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="xattr">
2N/A <BR/>
2N/A <I>xattr: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="host">
2N/A <BR/>
2N/A <I>HOST: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="subject">
2N/A <BR/>
2N/A <I>SUBJECT </I>
2N/A <I> audit-uid: </I><xsl:value-of select="@audit-uid"/>
2N/A <I> uid: </I><xsl:value-of select="@uid"/>
2N/A <I> gid: </I><xsl:value-of select="@gid"/>
2N/A <I> ruid: </I><xsl:value-of select="@ruid"/>
2N/A <I> rgid: </I><xsl:value-of select="@rgid"/>
2N/A <I> pid: </I><xsl:value-of select="@pid"/>
2N/A <I> sid: </I><xsl:value-of select="@sid"/>
2N/A <I> tid: </I><xsl:value-of select="@tid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="process">
2N/A <BR/>
2N/A <I>PROCESS </I>
2N/A <I> audit-uid: </I><xsl:value-of select="@audit-uid"/>
2N/A <I> uid: </I><xsl:value-of select="@uid"/>
2N/A <I> gid: </I><xsl:value-of select="@gid"/>
2N/A <I> ruid: </I><xsl:value-of select="@ruid"/>
2N/A <I> rgid: </I><xsl:value-of select="@rgid"/>
2N/A <I> pid: </I><xsl:value-of select="@pid"/>
2N/A <I> sid: </I><xsl:value-of select="@sid"/>
2N/A <I> tid: </I><xsl:value-of select="@tid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="return">
2N/A <BR/>
2N/A <I>RETURN </I>
2N/A <I> errval: </I><xsl:value-of select="@errval"/>
2N/A <I> retval: </I><xsl:value-of select="@retval"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="exit">
2N/A <BR/>
2N/A <I>EXIT </I>
2N/A <I> errval: </I><xsl:value-of select="@errval"/>
2N/A <I> retval: </I><xsl:value-of select="@retval"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="sequence">
2N/A <BR/>
2N/A <I>SEQUENCE </I>
2N/A <I> seq-num: </I><xsl:value-of select="@seq-num"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="fmri">
2N/A <BR/>
2N/A <I>FMRI: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="user">
2N/A <BR/>
2N/A <I>USER </I>
2N/A <I> uid: </I><xsl:value-of select="@uid"/>
2N/A <I> username: </I><xsl:value-of select="@username"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="group">
2N/A <BR/>
2N/A <I>GROUP </I>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="gid">
2N/A <BR/>
2N/A <I>gid: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="opaque">
2N/A <BR/>
2N/A <I>OPAQUE: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="liaison">
2N/A <BR/>
2N/A <I>LIAISON: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="argument">
2N/A <BR/>
2N/A <I>ARGUMENT </I>
2N/A <I> arg-num: </I><xsl:value-of select="@arg-num"/>
2N/A <I> value: </I><xsl:value-of select="@value"/>
2N/A <I> desc: </I><xsl:value-of select="@desc"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="attribute">
2N/A <BR/>
2N/A <I>ATTRIBUTE </I>
2N/A <I> mode: </I><xsl:value-of select="@mode"/>
2N/A <I> uid: </I><xsl:value-of select="@uid"/>
2N/A <I> gid: </I><xsl:value-of select="@gid"/>
2N/A <I> fsid: </I><xsl:value-of select="@fsid"/>
2N/A <I> nodeid: </I><xsl:value-of select="@nodeid"/>
2N/A <I> device: </I><xsl:value-of select="@device"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="cmd">
2N/A <BR/>
2N/A <I>CMD </I>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="argv">
2N/A <BR/>
2N/A <I>argv: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="arge">
2N/A <BR/>
2N/A <I>arge: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="exec_args">
2N/A <BR/>
2N/A <I>EXEC_ARGS </I>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="arg">
2N/A <BR/>
2N/A <I>arg: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="exec_env">
2N/A <BR/>
2N/A <I>EXEC_ENV </I>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="env">
2N/A <BR/>
2N/A <I>env: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="arbitrary">
2N/A <BR/>
2N/A <I>ARBITRARY: </I>
2N/A <I> print: </I><xsl:value-of select="@print"/>
2N/A <I> type: </I><xsl:value-of select="@type"/>
2N/A <I> count: </I><xsl:value-of select="@count"/>
2N/A <BR/>
2N/A <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="privilege">
2N/A <BR/>
2N/A <I>PRIVILEGE: </I>
2N/A <I> set-type: </I><xsl:value-of select="@set-type"/>
2N/A <BR/>
2N/A <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="use_of_privilege">
2N/A <BR/>
2N/A <I>USE_OF_PRIVILEGE: </I>
2N/A <I> result: </I><xsl:value-of select="@result"/>
2N/A <BR/>
2N/A <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="sensitivity_label">
2N/A <BR/>
2N/A <I>SENSITIVITY_LABEL: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="use_of_authorization">
2N/A <BR/>
2N/A <I>USE_OF_AUTHORIZATION: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="IPC">
2N/A <BR/>
2N/A <I>IPC </I>
2N/A <I> ipc-type: </I><xsl:value-of select="@ipc-type"/>
2N/A <I> ipc-id: </I><xsl:value-of select="@ipc-id"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="IPC_perm">
2N/A <BR/>
2N/A <I>IPC_PERM </I>
2N/A <I> uid: </I><xsl:value-of select="@uid"/>
2N/A <I> gid: </I><xsl:value-of select="@gid"/>
2N/A <I> creator-uid: </I><xsl:value-of select="@creator-uid"/>
2N/A <I> creator-gid: </I><xsl:value-of select="@creator-gid"/>
2N/A <I> mode: </I><xsl:value-of select="@mode"/>
2N/A <I> seq: </I><xsl:value-of select="@seq"/>
2N/A <I> key: </I><xsl:value-of select="@key"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="ip_address">
2N/A <BR/>
2N/A <I>IP_ADDRESS: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="ip_port">
2N/A <BR/>
2N/A <I>IP_PORT: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="ip">
2N/A <BR/>
2N/A <I>IP </I>
2N/A <I> version: </I><xsl:value-of select="@version"/>
2N/A <I> service_type: </I><xsl:value-of select="@service_type"/>
2N/A <I> len: </I><xsl:value-of select="@len"/>
2N/A <I> id: </I><xsl:value-of select="@id"/>
2N/A <I> offset: </I><xsl:value-of select="@offset"/>
2N/A <I> time_to_live: </I><xsl:value-of select="@time_to_live"/>
2N/A <I> protocol: </I><xsl:value-of select="@protocol"/>
2N/A <I> cksum: </I><xsl:value-of select="@cksum"/>
2N/A <I> src_addr: </I><xsl:value-of select="@src_addr"/>
2N/A <I> dest_addr: </I><xsl:value-of select="@dest_addr"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="old_socket">
2N/A <BR/>
2N/A <I>OLD_SOCKET </I>
2N/A <I> type: </I><xsl:value-of select="@type"/>
2N/A <I> port: </I><xsl:value-of select="@port"/>
2N/A <I> addr: </I><xsl:value-of select="@addr"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="socket">
2N/A <BR/>
2N/A <I>SOCKET </I>
2N/A <I> sock_domain: </I><xsl:value-of select="@sock_domain"/>
2N/A <I> sock_type: </I><xsl:value-of select="@sock_type"/>
2N/A <I> lport: </I><xsl:value-of select="@lport"/>
2N/A <I> laddr: </I><xsl:value-of select="@laddr"/>
2N/A <I> fport: </I><xsl:value-of select="@fport"/>
2N/A <I> faddr: </I><xsl:value-of select="@faddr"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="acl">
2N/A <BR/>
2N/A <I>ACL </I>
2N/A <xsl:choose>
2N/A <xsl:when test="@mode"> <!-- old ACL entry -->
2N/A <I> type: </I><xsl:value-of select="@type"/>
2N/A <I> value: </I><xsl:value-of select="@value"/>
2N/A <I> mode: </I><xsl:value-of select="@mode"/>
2N/A </xsl:when>
2N/A <xsl:otherwise>
2N/A <I> flags: </I><xsl:value-of select="@flags"/>
2N/A <I> id: </I><xsl:value-of select="@id"/>
2N/A <I> access_mask: </I><xsl:value-of select="@access_mask"/>
2N/A <I> type: </I><xsl:value-of select="@type"/>
2N/A </xsl:otherwise>
2N/A </xsl:choose>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="tid">
2N/A <BR/>
2N/A <I>terminal id: </I>
2N/A <I> type=</I><xsl:value-of select="@type"/>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="ipadr">
2N/A <I> local-port: </I><xsl:value-of select="@local-port"/>
2N/A <I> remote-port: </I><xsl:value-of select="@remote-port"/>
2N/A <I> host: </I><xsl:value-of select="@host"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_atom">
2N/A <BR/>
2N/A <I>X_ATOM: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_color_map">
2N/A <BR/>
2N/A <I>X_COLOR_MAP </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_cursor">
2N/A <BR/>
2N/A <I>X_CURSOR </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_font">
2N/A <BR/>
2N/A <I>X_FONT </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_graphic_context">
2N/A <BR/>
2N/A <I>X_GRAPHIC_CONTEXT </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_pixmap">
2N/A <BR/>
2N/A <I>X_PIXMAP </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_window">
2N/A <BR/>
2N/A <I>X_WINDOW </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_property">
2N/A <BR/>
2N/A <I>X_PROPERTY: </I>
2N/A <I> xid: </I><xsl:value-of select="@xid"/><I> xcreator-uid: </I><xsl:value-of select="@xcreator-uid"/>
2N/A <BR/>
2N/A <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_client">
2N/A <BR/>
2N/A <I>X_CLIENT: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="X_selection">
2N/A <BR/>
2N/A <I>X_SELECTION </I>
2N/A <xsl:apply-templates/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="x_sel_text">
2N/A <BR/>
2N/A <I>x_sel_text: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="x_sel_type">
2N/A <BR/>
2N/A <I>x_sel_type: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="x_sel_data">
2N/A <BR/>
2N/A <I>x_sel_data: </I> <xsl:value-of select="."/>
2N/A</xsl:template>
2N/A
2N/A<xsl:template match="zone">
2N/A <BR/>
2N/A <I>ZONE </I>
2N/A <I> name: </I><xsl:value-of select="@name"/>
2N/A</xsl:template>
2N/A
2N/A</xsl:stylesheet>