Trusted Solaris Audit Administration
この本のみを検索
PDF 文書ファイルをダウンロードする (548 KB)

Appendix C Audit Reference

Auditing brings a number of additional utilities to the Trusted Solaris operating environment. The utilities are listed here in four sections, each of which has a table below. Each table gives utility names and a short description of the task performed by each utility. The sections are identified by the man page suffix. The fifth table gives the filesystem security attributes of files in the auditing subsystem.

Table C-1 Section 1M -- Maintenance Commands

Command

Task

audit(1M)

Control the audit daemon

audit_startup(1M)

Initialize the audit subsystem

audit_warn(1M)

Run the audit daemon warning script

auditconfig(1M)

Configure auditing

auditd(1M)

Control audit trail files

auditreduce(1M)

Merge and select audit records from audit trail files

auditstat(1M)

Display kernel audit statistics

praudit(1M)

Print contents of an audit trail file

/etc/init.d/audit stop

Halt auditing [ a script; see init.d(4) ]

/etc/init.d/audit start

Restart auditing [ a script; see init.d(4) ]

Table C-2 Section 2 -- System Calls

System Call

System Parameter

Task

audit(2)

Write a record to the audit log

auditon(2)

Manipulate auditing:

A_GETPOLICY

Get audit policy flags

A_SETPOLICY

Set audit policy flags

A_GETKMASK

Get asynchronous audit event preselection mask

A_SETKMASK

Set asynchronous audit event preselection mask

A_GETQCTRL

Get the kernel audit queue control parameters

A_SETQCTRL

Set the kernel audit queue control parameters

A_GETSTAT

Get the audit system statistics

A_SETSTAT

Reset the audit system statistics

A_GETCOND

Determine if auditing is on/off/disabled

A_SETCOND

Set auditing to on/off

A_GETFSIZE

Get the size limit for an audit trail file

A_GETCLASS

Return the event to class mapping for the designated event

A_SETCLASS

Set the event to class mapping for the designated audit event

A_GETPINFO

Get the audit information for the specified process

A_SETPMASK

Set the preselection mask for a specified process

A_SETUMASK

Set the process mask for all processes of a specified audit ID

A_SETSMASK

Set the process mask for all processes of a specified session ID

A_GETCWD

Get the current working directory for this process

A_GETCAR

Get the current active root for this process

auditsvc(2)

Write audit log to specified file descriptor

getaudit(2)

Get process audit information

setaudit(2)

Set process audit information

getauid(2)

Get user audit identity

setauid(2)

Set user audit identity

Table C-3 Section 3 -- C Library Functions

Library Call

Task

au_preselect(3BSM)

Preselect an audit event

au_user_mask(3BSM)

Get user's binary preselection mask

getacdir(3BSM), getacmin(3BSM), getacflg(3BSM), getacna(3BSM), setac(3BSM), endac(3BSM)

Get audit_control(4) file information

getauclassnam(3BSM), getauclassnam_r(3BSM), getauclassent(3BSM), getauclassent_r(3BSM), setauclass(3BSM), endauclass(3BSM)

Get audit_class(4) entries

getauditflagsbin(3BSM), getauditflagschar(3BSM)

Convert audit flag specifications

getauevent(3BSM), getauevent_r(3BSM), getauevnam(3BSM), getauevnam_r(3BSM), getauevnum(3BSM), getauevnum_r(3BSM), getauevnonam(3BSM), setauevent(3BSM), endauevent(3BSM)

Get audit_event(4)entries

getauusernam(3BSM), getauuserent(3BSM), setauuser(3BSM), endauuser(3BSM)

Get audit_user(4) entries

getfauditflags(3BSM)

Generate the process audit state

Table C-4 Section 4 -- Headers, Tables, and Macros

Files

Task

audit.log(4)

Gives format for an audit trail file

audit_class(4)

Gives audit class definitions

audit_control(4)

Controls information for system audit daemon

audit_data(4)

Holds current information on the audit daemon

audit_event(4)

Holds audit event definition and class mapping

audit_user(4)

Holds per-user auditing information

Table C-5 Filesystem Security Attributes for the Audit Subsystem

Name

[SL]

DAC

Owner

Group

audit(1M)

[ADMIN_LOW]

555

bin

bin

auditd(1M)

auditconfig(1M)

auditstat(1M)

auditreduce(1M)

praudit(1M)

/etc/init.d/audit*

[ADMIN_LOW]

400

root

sys

audit_warn(1M)

[ADMIN_LOW]

640

root

sys

audit_startup(1M)

audit.log(4)

[ADMIN_HIGH]

400

root

root

audit_class(4)

[ADMIN_LOW]

400

root

sys

audit_control(4)

[ADMIN_LOW]

400

root

sys

audit_data(4)

[ADMIN_LOW]

660

root

root

audit_event(4)

[ADMIN_LOW]

400

root

sys

audit_user(4)

[ADMIN_LOW]

400

root

sys