audgen.2
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 75 行
2
75 行
.\" SCCSID: @(#)audgen.2 x.x 10/10/88.TH audgen 2.SH Nameaudgen \- generate an audit record.SH Syntax.ft B.nfaudgen(event, tokenp, argv).br.B int event;.B char *tokenp, *argv[];.fi.SH Description.NXR "audgen system call"The.PN audgensystem call generates an audit record, which gets placed in the auditlog..PPThe argument \fIevent\fP is an integer indicating the event type of the operation being audited (see .PN audit.h). The value of \fIevent\fP must bebetween MIN_TRUSTED_EVENT and MIN_TRUSTED_EVENT+N_TRUSTED_EVENTS..PPThe argument \fItokenp\fP is a null-terminated array of token types (see.PN audit.h), each of which represents the type of argument referenced by thecorresponding\fI*argv\fP argument..PPThe argument \fIargv\fP is a pointer to an array containing the actualarguments or pointers to those arguments that are to be recorded in theaudit record. A pointer to the actual argument is placed in that arraywhen the argument is a string, array, or other variable length structure. Arguments represented as int's or short's are placed directly in thatarray. Each member of the array must be word-aligned.You cannot change thevalues for the audit_id, uid, ruid, pid, ppid, device, IP address, orhostid (secondary tokens for these values are available). .SH Return ValuesUpon successful completion, .PN audgenreturns a value of 0. Otherwise, it returns a value of \-1 and sets the global integer variable.I errnoto indicate the error. .SH Restrictions.NXR "audgen system call" "restricted"The .PN audgencall is a privileged system call.No record is generated if the specified \fIevent\fP is not being auditedfor the current process.The maximum number of arguments referenced by .I argvis AUD_NPARAM (8)..SH Diagnostics.NXR "audgen system call" "diagnostics"The.PN audgensystem call fails under the followingconditions:.TP 15[EACCES]The user is not privileged for this operation..TP 15[EINVAL]The value supplied for the.I event,.I tokenp,or.I argvargument is invalid.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?