包含在查找更多文档专项支持资源 | 以 PDF 格式下载本书 (4851 KB)
Chapter 31 Solaris Auditing (Reference)This chapter describes the important components of Solaris auditing. The following is a list of the reference information in this chapter. For an overview of Solaris auditing, see Chapter 28, Solaris Auditing (Overview). For planning suggestions, see Chapter 29, Planning for Solaris Auditing. For procedures to configure auditing at your site, see Chapter 30, Managing Solaris Auditing (Tasks). Audit CommandsThis section provides information about the following commands: auditd DaemonThe following list summarizes what the auditd daemon does.
The auditd daemon can be started automatically when the system is brought up to multiuser mode. Or, you can start the daemon from the command line. When the auditd daemon is started, it calculates the amount of free space necessary for audit files. The auditd daemon uses the list of audit directories in the audit_control file as possible locations for creating audit files. The daemon maintains a pointer into this list of directories, starting with the first directory. Every time the auditd daemon needs to create an audit file, the daemon puts the file into the first available directory in the list. The list starts at the auditd daemon's current pointer. You can reset the pointer to the beginning of the list by running the audit -s command. The audit -n command instructs the daemon to switch to a new audit file. The new file is created in the same directory as the current file. audit CommandThe audit command controls the actions of the auditd daemon. The audit command can do the following tasks:
For a discussion of the available options, see the audit(1M) man page. bsmrecord CommandThe bsmrecord command displays the format of audit events that are defined in the /etc/security/audit_event file. The output includes the event's audit ID, audit class, audit flag, and the record's audit tokens in order. With no option, the bsmrecord output displays in a terminal window. With the -h option, the output is suitable for viewing in a browser. For examples of the use of the bsmrecord command, see How to Display Audit Record Formats. Also, see the bsmrecord(1M) man page. auditreduce CommandThe auditreduce command summarizes audit records that are stored in binary format. The command can merge audit records from one or more input audit files. The command can also be used to perform a post selection of audit records. The records remain in binary format. To merge the entire audit trail, run this command on the audit server. The audit server is the system that mounts all the audit file systems for the installation. For more information, see the auditreduce(1M) man page. The auditreduce command enables you to track all audited actions on multiple systems from a single location. The command can read the logical combination of all audit files as a single audit trail. You must identically configure all systems at a site for auditing, and create servers and local directories for the audit files. The auditreduce command ignores how the records were generated or where the records are stored. Without options, the auditreduce command merges audit records from all the audit files in all of the subdirectories in the audit root directory. Typically, /etc/security/audit is the audit root directory. The auditreduce command sends the merged results to standard output. You can also place the results into a single, chronologically ordered output file. The file contains binary data. The auditreduce command can also select particular types of records for analysis. The merging functions and selecting functions of the auditreduce command are logically independent. The auditreduce command captures data from the input files as the records are read, before the files are merged and then written to disk. By specifying options to the auditreduce command, you can also do the following:
With no arguments, the auditreduce command checks the subdirectories within the /etc/security/audit directory, the default audit root directory. The command checks for a files directory in which the start-time.end-time.hostname files reside. The auditreduce command is very useful when audit data resides in separate directories. Figure 31–1 illustrates audit data in separate directories for different hosts. Figure 31–2 illustrates audit data in separate directories for different audit servers. Figure 31–1 Audit Trail Storage Sorted by Host
Figure 31–2 Audit Trail Storage Sorted by Server
If the partition for the /etc/security/audit directory is very small, you might not store audit data in the default directory. You can pass the auditreduce command another directory by using the -R option:
You can also specify a particular subdirectory by using the -S option:
For other options and more examples, see the auditreduce(1M) man page. praudit CommandThe praudit command makes the binary output of the auditreduce command readable. The praudit command reads audit records in binary format from standard input and displays the records in a presentable format. The input can be piped from the auditreduce command or from a single audit file. Input can also be produced with the cat command to concatenate several files, or the tail command for a current audit file. The praudit command can generate four output formats. A fifth option, -l (long), prints one audit record per line of output. The default is to place one audit token per line of output. The -d option changes the delimiter that is used between token fields and between tokens. The default delimiter is a comma.
In the default output format of the praudit command, each record is easily identified as a sequence of audit tokens. Each token is presented on a separate line. Each record begins with a header token. You could, for example, further process the output with the awk command. Here is the output from the praudit -l command for a header token:
Here is the output from the praudit -r command for the same header token:
Example 31–1 Processing praudit Output With a ScriptYou might want to process output from the praudit command as lines of text. For example, you might want to select records that the auditreduce command cannot select. You can use a simple shell script to process the output of the praudit command. The following simple example script puts one audit record on one line, searches for a user-specified string, then returns the audit file to its original form.
Note that the ^a in the script is Control-A, not the two characters ^ and a. The prefix distinguishes the header token from the string header that might appear as text. auditconfig CommandThe auditconfig command provides a command-line interface to retrieve and set audit configuration parameters. The auditconfig command can do the following tasks:
For a discussion of the command options, see the auditconfig(1M) man page. Files Used in the Auditing ServiceThe auditing service uses the following files: system FileThe /etc/system file contains commands that the kernel reads during initialization to customize the system operations. The bsmconv and bsmunconv shell scripts, which are used to activate and deactivate auditing, modify the /etc/system file. The bsmconv shell script adds the following line to the /etc/system file:
The set c2audit:audit_load=1 entry causes the kernel module for auditing to be loaded when the system is booted. The bsmunconv shell script disables auditing when the system is rebooted. The command removes the c2audit line from the /etc/system file. syslog.conf FileThe /etc/syslog.conf file works with the audit_control file to store audit records in text format. The syslog.conf file can be configured to enable the syslog utility to store audit records. For an example, see How to Configure syslog Audit Logs. audit_class FileThe /etc/security/audit_class file defines the audit classes. Audit classes are groups of audit events. You use the class name in the audit_control file to preselect the classes whose events you want to audit. The classes accept prefixes to select only failed events or only successful events. For more information, see Audit Class Syntax. The superuser, or an administrator in an equivalent role, can modify the definitions of audit classes. This administrator can define new audit classes, rename existing classes, or otherwise change existing classes by editing the audit_class file in a text editor. For more information, see the audit_class(4) man page. audit_control FileThe /etc/security/audit_control file on each system contains configuration information for the auditd daemon. The file enables every system to mount a remote audit file system to store their audit records. You can specify five kinds of information in the audit_control file. Each line of information begins with a keyword.
For more information about the audit_control file, see the audit_control(4) man page. For information about the plugins, see Audit Plugins and the audit_binfile(5) and audit_syslog(5) man pages. Example 31–2 Sample audit_control FileThe following is a sample audit_control file for the system noddy. noddy uses two audit file systems on the audit server blinken, and a third audit file system that is mounted from the second audit server winken. The third file system is used only when the audit file systems on blinken become full or unavailable. The minfree value of 20 percent specifies that the warning script is run when the file systems are 80 percent full. The settings specify that logins and administrative operations are to be audited. The operations are audited for success and for failure. Failures of all types, except failures to create a file system object, are to be audited. Nonattributable events are also audited. The syslog audit log records fewer audit events. This log contains text summaries of failed logins and failed administrative operations. In the Solaris 10 release, the dir and minfree lines are deprecated. In the following example, the plugin lines do not contain a line break.
audit_event FileThe /etc/security/audit_event file contains the default audit event-class mappings. You can edit this file to change the class mappings. When you change class mappings, you must reboot the system or run the auditconfig -conf command to read the changed mappings into the kernel. For more information, see the audit_event(4) man page. audit_startup ScriptThe /etc/security/audit_startup script automatically configures the auditing service when the system enters multiuser mode. The auditd daemon starts after the script performs the following tasks:
For more information, see the audit_startup(1M) man page. audit_user DatabaseThe /etc/security/audit_user database modifies the system-wide preselected classes for an individual user. The classes that you add to a user's entry in the audit_user database modify the settings in the audit_control file in two ways:
Each user entry in the audit_user database contains three fields:
The audit fields are processed in sequence.
Suppose that you want to apply the system-wide audit settings to the user tamiko, except for successful reads of file system objects. Note the placement of the second colon (:) in the following audit_user entry:
The preceding entry means, “always audit everything, except for successful file reads.” If you want to audit everything for user tamiko with the exception of successful file reads, you use the following entry:
Suppose that you want to override system defaults for successful file-reads for user tamiko. The following entry means “always audit everything, but never audit successful file reads.”
Note – Successful events and failed events are treated separately. A process could generate more audit records for failed events than for successful events. audit_warn ScriptThe /etc/security/audit_warn script notifies an email alias when the auditd daemon encounters an unusual condition while writing audit records. You can customize this script for your site to warn of conditions that might require manual intervention. Or, you could specify how to handle those conditions automatically. For all error conditions, the audit_warn script writes a message to syslog with the severity of daemon.alert. You can use syslog.conf to configure console display of syslog messages. The audit_warn script also sends a message to the audit_warn email alias. You set up this alias as part of audit configuration. When the auditd daemon detects the following conditions, the daemon invokes the audit_warn script. The script sends email to the audit_warn alias.
If the perzone audit policy is set, the non-global zone's instance of auditd calls the zone's audit_warn script. For further information, see the audit_warn(1M) man page. bsmconv ScriptThe /etc/security/bsmconv script enables the auditing service. The bsmunconv command disables the auditing service. After the bsmconv script is run, you configure the audit directories and audit configuration files. Upon reboot, auditing is enabled. For further information, see the bsmconv(1M) man page. Rights Profiles for Administering AuditingThe Solaris OS provides rights profiles for configuring the auditing service and for analyzing the audit trail.
To configure roles to handle the auditing service, see Configuring RBAC (Task Map). Auditing and Solaris ZonesNon-global zones can be audited exactly as the global zone is audited, or nonglobal zones can set their own flags, storage, and audit policy. When all zones are being audited identically, the configuration files in the global zone provide the settings for auditing in every zone. The +zonename policy option is useful. When this option is set, the audit records from all zones include the name of the zone. Audit records can then be postselected by zone name. To understand audit policy, see Determining Audit Policy. For an example, see How to Configure Audit Policy. Zones can also be audited individually. When the policy option, perzone, is set in the global zone, each non-global zone runs its own audit daemon, handles its own audit queue, and specifies the content and location of its audit records. A non-global zone can also set most audit policy options. It cannot set policy that affects the entire system, so a non-global zone cannot set the ahlt or perzone policy. For further discussion, see Auditing on a System With Zones and How to Plan Auditing in Zones. To learn about zones, see Part II, Zones, in System Administration Guide: Solaris Containers-Resource Management and Solaris Zones. Audit ClassesSystem-wide defaults for Solaris auditing are preselected by specifying one or more classes of events. The classes are preselected for each system in the system's audit_control file. Anyone who uses the system is audited for these classes of events. The file is described in audit_control File. You can configure audit classes and make new audit classes. Audit class names can be up to 8 characters in length. The class description is limited to 72 characters. Numeric and non-alphanumeric characters are allowed. You can modify what is audited for individual users by adding audit classes to a user's entry in the audit_user database. The audit classes are also used as arguments to the auditconfig command. For details, see the auditconfig(1M) man page. Definitions of Audit ClassesThe following table shows each predefined audit class, the descriptive name for each audit class, and a short description. Table 31–1 Predefined Audit Classes
You can define new classes by modifying the /etc/security/audit_class file. You can also rename existing classes. For more information, see the audit_class(4) man page. Audit Class SyntaxEvents can be audited for success, events can be audited for failure, and events can be audited for both. Without a prefix, a class of events is audited for success and for failure. With a plus (+) prefix, a class of events is audited for success only. With a minus (-) prefix, a class of events is audited for failure only. The following table shows some possible representations of audit classes. Table 31–2 Plus and Minus Prefixes to Audit Classes
The all class can generate large amounts of data and quickly fill audit file systems. Use the all class only if you have extraordinary reasons to audit all activities. Audit classes that were previously selected can be further modified by a caret prefix, ^. The following table shows how the caret prefix modifies a preselected audit class. Table 31–3 Caret Prefix That Modifies Already-Specified Audit Classes
The audit classes and their prefixes can be used in the following files and commands:
See audit_control File for an example of using the prefixes in the audit_control file. Audit PluginsAudit plugins specify how to handle the audit records in the audit queue. The audit plugins are specified by name in the audit_control file, audit_binfile.so and audit_syslog.so. The plugins and their attributes can specify the following:
Refer to the audit_binfile(5), audit_syslog(5), and audit_control(4) man pages. Audit PolicyAudit policy determines if additional information is added to the audit trail. The following policies add tokens to audit records: arge, argv, group, path, seq, trail, windata_down, windata_up, and zonename. The remaining policies do not add tokens. The ahlt and cnt policies determine what happens when kernel audit records cannot be delivered, the public policy limits auditing of public files, and the perzone policy establishes separate audit queues for non-global zones. The effects of the different audit policy options are described in Determining Audit Policy. For a description of audit policy options, see the -setpolicy option in the auditconfig(1M) man page. For a list of available policy options, run the auditconfig -lspolicy command. Process Audit CharacteristicsThe following audit characteristics are set at initial login:
Audit TrailThe audit trail is contains binary audit files. The trail is created by the auditd daemon. Once the auditing service has been enabled with the bsmconv command, the auditd daemon starts when the system is booted. The auditd daemon is responsible for collecting the audit trail data and writing the audit records. The audit records are stored in binary format on file systems that are dedicated to audit files. Even though you can physically locate audit directories within file systems that are not dedicated to auditing, do not do so except for directories of last resort. Directories of last resort are directories where audit files are written only when no other suitable directory is available. There is one other scenario where locating audit directories outside of dedicated audit file systems could be acceptable. You might do so in a software development environment where auditing is optional. To make full use of disk space might be more important than to keep an audit trail. However, in a security-conscious environment, the placement of audit directories within other file systems is not acceptable. You should also consider the following factors when administering audit file systems:
Conventions for Binary Audit File NamesEach binary audit file is a self-contained collection of records. The file's name identifies the time span during which the records were generated and the system that generated them. Binary Audit File NamesAudit files that are complete have names of the following form:
An audit file that is still active has a name of the following form:
For examples of not_terminated and closed audit file names, see How to Clean Up a not_terminated Audit File. Binary Audit File TimestampsThe timestamps in file names are used by the auditreduce command to locate records within a specific time range. These timestamps are important because there can be a month's accumulation or more of audit files online. To search all the files for records that were generated in the last 24 hours would be unacceptably expensive. The start-time and end-time are timestamps with one-second resolution. They are specified in Greenwich Mean Time (GMT). The format is four digits for the year, followed by two digits for each month, day, hour, minute, and second, as follows:
The timestamps are in GMT to ensure that they sort in proper order, even across time zones. Because they are in GMT, the date and hour must be translated to the current time zone to be meaningful. Beware of this point whenever you manipulate these files with standard file commands rather than with the auditreduce command. Audit Record StructureAn audit record is a sequence of audit tokens. Each audit token contains event information such as user ID, time, and date. A header token begins an audit record, and an optional trailer token concludes the record. Other audit tokens contain information relevant to the audit event. The following figure shows a typical audit record. Figure 31–3 Typical Audit Record Structure
Audit Record AnalysisAudit record analysis involves postselecting records from the audit trail. You can use one of two approaches to parsing the binary data that was collected.
Audit Token FormatsEach audit token has a token type identifier, which is followed by data that is specific to the token. Each token type has its own format. The following table shows the token names with a brief description of each token. Obsolete tokens are maintained for compatibility with previous Solaris releases. Table 31–4 Audit Tokens for Solaris Auditing
An audit record always begins with a header token. The header token indicates where the audit record begins in the audit trail. In the case of attributable events, the subject and the process tokens refer to the values of the process that caused the event. In the case of nonattributable events, the process token refers to the system. acl TokenThe acl token records information about Access Control Lists (ACLs). The acl token consists of four fixed fields:
The praudit -x command shows the fields of the acl token:
arbitrary Token (Obsolete)The arbitrary token encapsulates data for the audit trail. This token consists of four fixed fields and an array of data. The fixed fields are as follows:
The remainder of the token is composed of count of the specified type. The praudit command displays the arbitrary token as follows:
The following table shows the possible values of the print format field. Table 31–5 Values for the arbitrary Token's Print Format Field
The following table shows the possible values of the item size field. Table 31–6 Values for the arbitrary Token's Item Size Field
arg TokenThe arg token contains information about the arguments to a system call: the argument number of the system call, the argument value, and an optional description. This token allows a 32-bit integer system-call argument in an audit record. The arg token has five fields:
The praudit -x command shows the fields of the arg token:
attribute TokenThe attribute token contains information from the file vnode. The attribute token has seven fields:
For further information about the file system ID and the device ID, see the statvfs(2) man page. The attribute token usually accompanies a path token. The attribute token is produced during path searches. If a path-search error occurs, there is no vnode available to obtain the necessary file information. Therefore, the attribute token is not included as part of the audit record. The praudit -x command shows the fields of the attribute token:
cmd TokenThe cmd token records the list of arguments and the list of environment variables that are associated with a command. The cmd token contains the following fields:
The praudit -x command shows the fields of the cmd token. The following is a truncated cmd token. The line is wrapped for display purposes.
exec_args TokenThe exec_args token records the arguments to an exec() system call. The exec_args token has two fixed fields:
The remainder of this token is composed of count strings. The praudit -x command shows the fields of the exec_args token:
Note – The exec_args token is output only when the argv audit policy option is active. exec_env TokenThe exec_env token records the current environment variables to an exec() system call. The exec_env token has two fixed fields:
The remainder of this token is composed of count strings. The praudit -x command shows the fields of the exec_env token. The line is wrapped for display purposes.
Note – The exec_env token is output only when the arge audit policy option is active. exit Token (Obsolete)The exit token records the exit status of a program. The exit token contains the following fields:
The praudit command displays the exit token as follows:
file TokenThe file token is a special token that is generated by the auditd daemon. The token marks the beginning of a new audit file and the end of an old audit file as the old file is deactivated. The initial file token identifies the previous file in the audit trail. The final file token identifies the next file in the audit trail. The auditd daemon builds a special audit record that contains this token to “link” together successive audit files into one audit trail. The praudit -x command shows the fields of the file token. This token identifies the next file in the audit trail. The line is wrapped for display purposes.
group Token (Obsolete)This token has been replaced by the the groups token. See groups Token. groups TokenThe groups token replaces the group token. The groups token records the group entries from the process's credential. The groups token has two fixed fields:
The remainder of this token is composed of count group entries. The praudit -x command shows the fields of the groups token:
Note – The groups token is output only when the group audit policy option is active. header TokenThe header token is special in that it marks the beginning of an audit record. The header token combines with the trailer token to bracket all the other tokens in the record. The header token has eight fields:
On 64-bit systems, the header token is displayed with a 64-bit timestamp, in place of the 32-bit timestamp. The praudit command displays the header token as follows:
The praudit -x command displays the fields of the header token at the beginning of the audit record. The line is wrapped for display purposes.
in_addr TokenThe in_addr token contains an Internet Protocol address. Since the Solaris 8 release, the Internet address can be displayed in IPv4 format or IPv6 format. The IPv4 address uses 4 bytes. The IPv6 address uses 1 byte to describe the address type, and 16 bytes to describe the address. The in_addr token has three fields:
The praudit -x command shows the content of the in_addr token:
ip Token (Obsolete)The ip token contains a copy of an Internet Protocol header. The ip token has two fields:
The praudit command displays the ip token as follows:
The IP header structure is defined in the /usr/include/netinet/ip.h file. ipc TokenThe ipc token contains the System V IPC message handle, semaphore handle, or shared-memory handle that is used by the caller to identify a particular IPC object. The ipc token has three fields:
Note – The IPC object identifiers violate the context-free nature of the Solaris audit tokens. No global “name” uniquely identifies IPC objects. Instead, IPC objects are identified by their handles. The handles are valid only during the time that the IPC objects are active. However, the identification of IPC objects should not be a problem. The System V IPC mechanisms are seldom used, and the mechanisms all share the same audit class. The following table shows the possible values for the IPC object type field. The values are defined in the /usr/include/bsm/audit.h file. Table 31–7 Values for the IPC Object Type Field
The praudit -x command shows the fields of the ipc token:
ipc_perm TokenThe ipc_perm token contains a copy of the System V IPC access permissions. This token is added to audit records that are generated by IPC shared-memory events, IPC semaphore events, and IPC message events. The ipc_perm token has eight fields:
The praudit -x command shows the fields of the ipc_perm token. The line is wrapped for display purposes.
The values are taken from the ipc_perm structure that is associated with the IPC object. iport TokenThe iport token contains the TCP or UDP port address. The iport token has two fields:
The praudit command displays the iport token as follows:
opaque Token (Obsolete)The opaque token contains unformatted data as a sequence of bytes. The opaque token has three fields:
The praudit command displays the opaque token as follows:
path TokenThe path token contains access path information for an object. The path token contains the following fields:
The praudit command displays the path token, without the second field, as follows:
The praudit -x command shows the content of the path token:
The following figure shows the format of a path token. Figure 31–4 path Token Format
path_attr TokenThe path_attr token contains access path information for an object. The access path specifies the sequence of attribute file objects below the path token object. Systems calls such as openat() access attribute files. For more information on attribute file objects, see the fsattr(5) man page. The path_attr token contains the following fields:
The praudit command displays the path_attr token as follows:
privilege TokenThe privilege token records the use of privileges on a process. The privilege token is not recorded for privileges in the basic set. If a privilege has been removed from the basic set by administrative action, then the use of that privilege is recorded. For more information on privileges, see Privileges (Overview) The privilege token contains the following fields:
The praudit -x command shows the fields of the privilege token. The line is wrapped for display purposes.
process TokenThe process token contains information about a user who is associated with a process, such as the recipient of a signal. The process token has nine fields:
The audit ID, user ID, group ID, process ID, and session ID are long instead of short. Note – The process token fields for the session ID, the real user ID, or the real group ID might be unavailable. The value is then set to -1. Any token that contains a terminal ID has several variations. The praudit command hides these variations. So, the terminal ID is handled the same way for any token that contains a terminal ID. The terminal ID is either an IP address and port number, or a device ID. A device ID, such as the serial port that is connected to a modem, can be zero. The terminal ID is specified in one of several formats. The terminal ID for device numbers is specified as follows:
In releases prior to the Solaris 8 release, the terminal ID for port numbers is specified as follows:
Since the Solaris 8 release, the terminal ID for port numbers is specified as follows:
The praudit -x command shows the fields of the process token. The line is wrapped for display purposes.
The following figure shows the format of a process token. Figure 31–5 process Token Format
return TokenThe return token contains the return status of the system call (u_error) and the process return value (u_rval1). The return token has three fields:
The return token is always returned as part of kernel-generated audit records for system calls. In application auditing, this token indicates exit status and other return values. The praudit command displays the return token for a system call as follows:
The praudit -x command shows the fields of the return token:
sequence TokenThe sequence token contains a sequence number. The sequence number is incremented every time an audit record is added to the audit trail. This token is useful for debugging. The sequence token has two fields:
The praudit command shows the field of the sequence token:
The praudit -x command shows the content of the sequence token:
Note – The sequence token is output only when the seq audit policy option is active. socket TokenThe socket token contains information that describes an Internet socket. In some instances, the token has four fields:
The praudit command displays this instance of the socket token as follows:
In most instances, the token has eight fields:
Since the Solaris 8 release, the Internet address can be displayed in IPv4 format or IPv6 format. The IPv4 address uses 4 bytes. The IPv6 address uses 1 byte to describe the address type, and 16 bytes to describe the address. The praudit command displays the socket token as follows:
The praudit -x command shows the fields of the socket token. The line is wrapped for display purposes.
subject TokenThe subject token describes a user who performs or attempts to perform an operation. The format is the same as the process token. The subject token has nine fields:
The audit ID, user ID, group ID, process ID, and session ID are long instead of short. Note – The subject token fields for the session ID, the real user ID, or the real group ID might be unavailable. The value is then set to -1. Any token that contains a terminal ID has several variations. The praudit command hides these variations. So, the terminal ID is handled the same way for any token that contains a terminal ID. The terminal ID is either an IP address and port number, or a device ID. A device ID, such as the serial port that is connected to a modem, can be zero. The terminal ID is specified in one of several formats. The terminal ID for device numbers is specified as follows:
In releases prior to the Solaris 8 release, the terminal ID for port numbers is specified as follows:
Since the Solaris 8 release, the terminal ID for port numbers is specified as follows:
The subject token is always returned as part of kernel-generated audit records for system calls. The praudit command displays the subject token as follows:
The praudit -x command shows the fields of the subject token. The line is wrapped for display purposes.
The following figure shows the format of the subject token. Figure 31–6 subject Token Format
text TokenThe text token contains a text string. The text token has three fields:
The praudit -x command shows the content of the text token:
trailer TokenThe two tokens, header and trailer, are special in that they distinguish the end points of an audit record and bracket all the other tokens. A header token begins an audit record. A trailer token ends an audit record. The trailer token is an optional token. The trailer token is added as the last token of each record only when the trail audit policy option has been set. When an audit record is generated with trailers turned on, the auditreduce command can verify that the trailer correctly points back to the record header. The trailer token supports backward seeks of the audit trail. The trailer token has three fields:
The praudit command displays the trailer token as follows:
uauth TokenThe uauth token records the use of authorization with a command or action. The uauth token contains the following fields:
The praudit command displays the uauth token as follows:
upriv TokenThe upriv token records the use of privilege with a command or action. The praudit -x command shows the fields of the upriv token:
zonename TokenThe zonename token records the zone in which the audit event occurred. The string “global” indicates audit events that occur in the global zone. The zonename token contains the following fields:
The praudit -x command shows the content of the zonename token:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||