Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 19:02:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_key_permission

Proto:static int selinux_key_permission(key_ref_t key_ref, const struct cred *cred, unsigned perm)

Type:int

Parameter:

TypeParameterName
key_ref_tkey_ref
const struct cred *cred
unsignedperm
6576  If perm == 0 Then Return 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  Return avc_has_perm - Check permissions and perform any appropriate auditing