Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selnl_add_payload

Proto:static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data)

Type:void

Parameter:

TypeParameterName
struct nlmsghdr *nlh
intlen
intmsgtype
void *data
46  Case msgtype == SELNL_MSG_SETENFORCE
47  msg = lmsg_data - head of message payload*@nlh: netlink message header
49  memset(msg, 0, len)
50  val = *data
51  Break
54  Case msgtype == SELNL_MSG_POLICYLOAD
55  msg = lmsg_data - head of message payload*@nlh: netlink message header
57  memset(msg, 0, len)
58  seqno = *data
59  Break
62  Default
63  BUG()
Caller
NameDescribe
selnl_notify