函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit.c Create Date:2022-07-27 12:26:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:audit_net_init

函数原型:static int __attribute__((__section__(".init.text"))) __attribute__((__cold__))audit_net_init(struct net *net)

返回类型:int

参数:

类型参数名称
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  如果(sk == NULL)则
1546  audit_panic("cannot initialize netlink socket in namespace")
1547  返回:负ENOMEM
1549  sk_sndtimeo等于MAX_SCHEDULE_TIMEOUT
1551  返回:0