Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-28 11:23:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_net_init

Proto:static int __attribute__((__section__(".init.text"))) __attribute__((__cold__))audit_net_init(struct net *net)

Type:int

Parameter:

TypeParameterName
struct net *net
1535  struct netlink_kernel_cfg cfg = {input = audit_receive - receive messages from a netlink control socket*@skb: the message buffer* Parse the provided skb and deal with any messages that may be present,* malformed skbs are discarded., bind = Run custom bind function on netlink socket group connect or bind requests. , flags = NL_CFG_F_NONROOT_RECV, groups = AUDIT_NLGRP_MAX, }
1542  aunet = net_generic(net, private audit network namespace index )
1544  sk = netlink_kernel_create(net, auditing , & cfg)
1545  If (sk == NULL) Then
1546  audit_panic("cannot initialize netlink socket in namespace")
1547  Return -ENOMEM
1549  sk_sndtimeo = MAX_SCHEDULE_TIMEOUT
1551  Return 0