函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selnl_notify

函数原型:static void selnl_notify(int msgtype, void *data)

返回类型:void

参数:

类型参数名称
intmsgtype
void *data
74  len等于selnl_msglen(msgtype)
76  skb等于分配一个新的Netlink消息
77  如果非skb则转到:oom
80  tmp等于 These elements must be at the end, see alloc_skb() for details.
81  nlh等于lmsg_put - Add a new netlink message to an skb*@skb: socket buffer to store message in*@portid: netlink PORTID of requesting application*@seq: sequence number of message*@type: message type*@payload: length of message payload*@flags: message flags*
82  如果非nlh则转到:out_kfree_skb
84  selnl_add_payload(nlh, len, msgtype, data)
85  Length of message including header 等于 These elements must be at the end, see alloc_skb() for details. tmp
86  dst_group等于SELNLGRP_AVC
87  netlink_broadcast(selnl, skb, 0, SELNLGRP_AVC, GFP_USER)
88  out :
89  返回
91  out_kfree_skb :
92  释放缓存
93  oom :
94  打印错误信息("SELinux: OOM in %s\n", __func__)
95  转到:out
调用者
名称描述
selnl_notify_setenforce
selnl_notify_policyload