Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-28 18:43:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:avc_add_callback - Register a callback for security events.*@callback: callback function*@events: security events* Register a callback function for events in the set @events.* Returns %0 on success or -%ENOMEM if insufficient memory

Proto:int __init avc_add_callback(int (*callback)(unsigned int event), unsigned int events)

Type:int

Parameter:

TypeParameterName
int (*callback
unsigned intevents
798  rc = 0
800  c = Allocation memory
801  If Not c Then
802  rc = -ENOMEM
803  Go to out
806  callback = callback
807  events = events
808  next = avc_callbacks
809  avc_callbacks = c
810  out :
811  Return rc
Caller
NameDescribe
selinux_init