.\" 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_ADD_CALLBACK" "9" "09 October 2005" "" ""
.SH NAME
avc_add_callback \- Register a callback for security events.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int avc_add_callback (int (*\fIcallback\fB)
u32 event, u32 ssid, u32 tsid, u16 tclass, u32 perms, u32 *out_retained, u32 \fIevents\fB, u32 \fIssid\fB, u32 \fItsid\fB, u16 \fItclass\fB, u32 \fIperms\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcallback\fB\fR
callback function
.TP
\fB\fIevents\fB\fR
security events
.TP
\fB\fIssid\fB\fR
source security identifier or SECSID_WILD
.TP
\fB\fItsid\fB\fR
target security identifier or SECSID_WILD
.TP
\fB\fItclass\fB\fR
target security class
.TP
\fB\fIperms\fB\fR
permissions
.SH "DESCRIPTION"
.PP
Register a callback function for events in the set \fIevents\fR
related to the SID pair (\fIssid\fR, \fItsid\fR) and
and the permissions \fIperms\fR, interpreting
\fIperms\fR based on \fItclass\fR\&. Returns 0 on success or
-ENOMEM if insufficient memory exists to add the callback.