函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_key_permission

函数原型:static int selinux_key_permission(key_ref_t key_ref, const struct cred *cred, unsigned perm)

返回类型:int

参数:

类型参数名称
key_ref_tkey_ref
const struct cred *cred
unsignedperm
6576  如果perm恒等于0则返回:0
6579  sid等于get the security ID of a set of credentials
6581  key等于key_ref_to_ptr(key_ref)
6582  ksec等于 security data for this key
6584  返回:avc_has_perm - Check permissions and perform any appropriate auditing