Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_socket_setsockopt

Proto:static int selinux_socket_setsockopt(struct socket *sock, int level, int optname)

Type:int

Parameter:

TypeParameterName
struct socket *sock
intlevel
intoptname
4871  err = sock_has_perm(sk, SOCKET__SETOPT)
4872  If err Then Return err
4875  Return selinux_netlbl_socket_setsockopt - Do not allow users to remove a NetLabel*@sock: the socket*@level: the socket level or protocol*@optname: the socket option name* Description:* Check the setsockopt() call and if the user is trying to replace the IP*