函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:32:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:selinux_socket_setsockopt

函数原型:static int selinux_socket_setsockopt(struct socket *sock, int level, int optname)

返回类型:int

参数:

类型参数名称
struct socket *sock
intlevel
intoptname
4871  err等于sock_has_perm(sk, SOCKET__SETOPT)
4872  如果err则返回:err
4875  返回: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*