Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selnl_notify

Proto:static void selnl_notify(int msgtype, void *data)

Type:void

Parameter:

TypeParameterName
intmsgtype
void *data
74  len = selnl_msglen(msgtype)
76  skb = lmsg_new - Allocate a new netlink message*@payload: size of the message payload*@flags: the type of memory to allocate.* Use NLMSG_DEFAULT_SIZE if the size of the payload isn't known* and a good default is needed.
77  If Not skb Then Go to 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  If Not nlh Then Go to 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  Return
91  out_kfree_skb :
92  free an sk_buff
93  oom :
94  pr_err("SELinux: OOM in %s\n", __func__)
95  Go to out
Caller
NameDescribe
selnl_notify_setenforce
selnl_notify_policyload