函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_key_alloc

函数原型:static int selinux_key_alloc(struct key *k, const struct cred *cred, unsigned long flags)

返回类型:int

参数:

类型参数名称
struct key *k
const struct cred *cred
unsigned longflags
6543  ksec等于分配内存并置零
6544  如果非ksec则返回:负ENOMEM
6547  tsec等于selinux_cred(cred)
6548  如果 keycreate SID SID of key 等于 keycreate SID
6550  否则 SID of key 等于 current SID
6553  security data for this key 等于ksec
6554  返回:0