.\" 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_LOOKUP" "" "06 October 2005" "" "" .SH NAME avc_lookup \- Look up an AVC entry. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int avc_lookup (u32 \fIssid\fB, u32 \fItsid\fB, u16 \fItclass\fB, u32 \fIrequested\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\fIrequested\fB\fR requested permissions, interpreted based on \fItclass\fR .TP \fB\fIaeref\fB\fR AVC entry reference .SH "DESCRIPTION" .PP Look up an AVC entry that is valid for the \fIrequested\fR permissions between the SID pair (\fIssid\fR, \fItsid\fR), interpreting the permissions based on \fItclass\fR\&. If a valid AVC entry exists, then this function updates \fIaeref\fR to refer to the entry and returns 0\&. Otherwise, this function returns -ENOENT\&.