函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_sock_family - Get socket's family.*@sk: Pointer to "struct sock".* Returns one of PF_INET, PF_INET6, PF_UNIX or 0.

函数原型:static u8 tomoyo_sock_family(struct sock *sk)

返回类型:u8

参数:

类型参数名称
struct sock *sk
630  如果moyo_kernel_service - Check whether I'm kernel service or not.* Returns true if I'm kernel service, false otherwise.则返回:0
632  family等于sk_family
634  :family恒等于PF_INET
635  :family恒等于PF_INET6
636  :family恒等于PF_UNIX
637  返回:family
638  默认
639  返回:0
调用者
名称描述
tomoyo_socket_listen_permissionmoyo_socket_listen_permission - Check permission for listening a socket.*@sock: Pointer to "struct socket".* Returns 0 on success, negative value otherwise.
tomoyo_socket_connect_permissionmoyo_socket_connect_permission - Check permission for setting the remote address of a socket.*@sock: Pointer to "struct socket".*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.* Returns 0 on success, negative value otherwise.
tomoyo_socket_bind_permissionmoyo_socket_bind_permission - Check permission for setting the local address of a socket.*@sock: Pointer to "struct socket".*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.* Returns 0 on success, negative value otherwise.
tomoyo_socket_sendmsg_permissionmoyo_socket_sendmsg_permission - Check permission for sending a datagram.*@sock: Pointer to "struct socket".*@msg: Pointer to "struct msghdr".*@size: Unused.* Returns 0 on success, negative value otherwise.