Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set the security data for a kernel service* - all the creation contexts are set to unlabelled

Proto:static int selinux_kernel_act_as(struct cred *new, unsigned int secid)

Type:int

Parameter:

TypeParameterName
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  If ret == 0 Then
3945  current SID = secid
3946  fscreate SID = 0
3947  keycreate SID = 0
3948  fscreate SID = 0
3950  Return ret