.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "AVC_INSERT" "" "06 October 2005" "" "" .SH NAME avc_insert \- Insert an AVC entry. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int avc_insert (u32 \fIssid\fB, u32 \fItsid\fB, u16 \fItclass\fB, struct avc_entry * \fIae\fB, struct avc_entry_ref * \fIaeref\fB); \fR .SH "ARGUMENTS" .TP \fB\fIssid\fB\fR source security identifier .TP \fB\fItsid\fB\fR target security identifier .TP \fB\fItclass\fB\fR target security class .TP \fB\fIae\fB\fR AVC entry .TP \fB\fIaeref\fB\fR AVC entry reference .SH "DESCRIPTION" .PP Insert an AVC entry for the SID pair (\fIssid\fR, \fItsid\fR) and class \fItclass\fR\&. The access vectors and the sequence number are normally provided by the security server in response to a \fBsecurity_compute_av\fR call. If the sequence number \fIae\fR->avd.seqno is not less than the latest revocation notification, then the function copies the access vectors into a cache entry, updates \fIaeref\fR to refer to the entry, and returns 0\&. Otherwise, this function returns -EAGAIN\&.