函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\netlabel.h Create Date:2022-07-27 20:19:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lbl_secattr_alloc - Allocate and initialize a netlbl_lsm_secattr struct*@flags: the memory allocation flags* Description:* Allocate and initialize a netlbl_lsm_secattr struct. Returns a valid* pointer on success, or NULL on failure.

函数原型:static inline struct netlbl_lsm_secattr *netlbl_secattr_alloc(gfp_t flags)

返回类型:struct netlbl_lsm_secattr

参数:

类型参数名称
gfp_tflags
382  返回:分配内存并置零
调用者
名称描述
selinux_netlbl_sock_genattrselinux_netlbl_sock_genattr - Generate the NetLabel socket secattr*@sk: the socket* Description:* Generate the NetLabel security attributes for a socket, making full use of* the socket's attribute cache. Returns a pointer to the security attributes