Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_nlmsg_perm

Proto:static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)

Type:int

Parameter:

TypeParameterName
struct sock *sk
struct sk_buff *skb
5532  err = 0
5535  sksec = sk_security
5537  If len < NLMSG_HDRLEN Then
5538  err = -EINVAL
5539  Go to out
5541  nlh = nlmsg_hdr(skb)
5543  err = selinux_nlmsg_lookup( sock security class , Message content , & perm)
5544  If err Then
5545  If err == -EINVAL Then
5546  pr_warn_ratelimited("SELinux: unrecognized netlink message: protocol=%hu nlmsg_type=%hu sclass=%s pig=%d comm=%s\n", sk_protocol, Message content , name, task_pid_nr(current process), comm)
5558  If err == -ENOENT Then err = 0
5560  Go to out
5563  err = sock_has_perm(sk, perm)
5564  out :
5565  Return err
Caller
NameDescribe
selinux_netlink_send