Function report |
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 activity | Download SCCT | Chinese |
Name:selinux_nlmsg_perm
Proto:static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
struct sk_buff * | skb |
5532 | err = 0 |
5535 | sksec = sk_security |
5537 | If len < NLMSG_HDRLEN Then |
5543 | err = selinux_nlmsg_lookup( sock security class , Message content , & perm) |
5544 | If err 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) |
5552 | If Not enforcing_enabled( & selinux_state) || security_get_allow_unknown( & selinux_state) Then err = 0 |
5560 | Go to out |
5563 | err = sock_has_perm(sk, perm) |
5564 | out : |
5565 | Return err |
Name | Describe |
---|---|
selinux_netlink_send |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |