函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set the security data for a kernel service* - all the creation contexts are set to unlabelled

函数原型:static int selinux_kernel_act_as(struct cred *new, unsigned int secid)

返回类型:int

参数:

类型参数名称
struct cred *new
unsigned intsecid
3935  tsec等于selinux_cred(new)
3936  sid等于get the subjective security ID of the current task
3939  ret等于avc_has_perm - Check permissions and perform any appropriate auditing
3944  如果ret恒等于0则
3945  current SID 等于secid
3946  fscreate SID 等于0
3947  keycreate SID 等于0
3948  fscreate SID 等于0
3950  返回:ret